home *** CD-ROM | disk | FTP | other *** search
/ Twentieth Anniversary Mac…osh - QuickTime Showcase / 691-1418,Twentieth Anniversary Macintosh. QuickTime Showcase. (CD).toast / QuickTime Showcase / QuickTime Showcase.rsrc / CODE_46_TransDrv.txt < prev    next >
Text File  |  1997-05-15  |  166KB  |  3,033 lines

  1. # near model CODE resource
  2. # jump table entries: 57072-57083 (12 of them)
  3. 00000000  FFFF                     .invalid   <<F/7/7>>
  4. 00000002  DEF0 0000                add.w      A7, [A0 + D0.w]
  5. 00000006  203C 2F0A 302F           move.l     D0, 0x2F0A302F /* '/\n0/' */
  6. // begin alternate branch 00000008-00000014
  7. fn00000008:
  8. 00000008  2F0A                     move.l     -[A7], A2
  9. 0000000A  302F 0008                move.w     D0, [A7 + 0x8]
  10. 0000000E  0280 0000 8000           andi.l     D0, 0x8000
  11. // end alternate branch 00000008-00000014
  12. fn00000008: // (misaligned)
  13. 0000000C  0008 0280                ori.b      A0, 0x80
  14. 00000010  0000 8000                ori.b      D0, 0x0
  15. 00000014  4A80                     tst.l      D0
  16. 00000016  6724                     beq        +0x26 /* 0000003C */
  17. 00000018  302F 000A                move.w     D0, [A7 + 0xA]
  18. 0000001C  0280 0000 8000           andi.l     D0, 0x8000
  19. 00000022  4A80                     tst.l      D0
  20. 00000024  6716                     beq        +0x18 /* 0000003C */
  21. 00000026  302F 0008                move.w     D0, [A7 + 0x8]
  22. 0000002A  0280 0000 0100           andi.l     D0, 0x100
  23. 00000030  4A80                     tst.l      D0
  24. 00000032  56C0                     sne        D0
  25. 00000034  4400                     neg.b      D0
  26. 00000036  49C0                     lea.l      A4, D0
  27. 00000038  245F                     movea.l    A2, [A7]+
  28. 0000003A  4E75                     rts
  29. label0000003C:
  30. 0000003C  2F2F 0008                move.l     -[A7], [A7 + 0x8]
  31. 00000040  4EAD B5F8                jsr        [A5 - 0x4A08]
  32. 00000044  2448                     movea.l    A2, A0
  33. 00000046  200A                     move.l     D0, A2
  34. 00000048  4A80                     tst.l      D0
  35. 0000004A  584F                     addq.w     A7, 4
  36. 0000004C  6708                     beq        +0xA /* 00000056 */
  37. 0000004E  0C2A 000E 000E           cmpi.b     [A2 + 0xE], 0xE
  38. 00000054  6706                     beq        +0x8 /* 0000005C */
  39. label00000056:
  40. 00000056  7001                     moveq.l    D0, 0x01
  41. 00000058  245F                     movea.l    A2, [A7]+
  42. 0000005A  4E75                     rts
  43. label0000005C:
  44. 0000005C  102A 0033                move.b     D0, [A2 + 0x33]
  45. 00000060  7201                     moveq.l    D1, 0x01
  46. 00000062  C081                     and.l      D0, D1
  47. 00000064  6706                     beq        +0x8 /* 0000006C */
  48. 00000066  7001                     moveq.l    D0, 0x01
  49. 00000068  245F                     movea.l    A2, [A7]+
  50. 0000006A  4E75                     rts
  51. label0000006C:
  52. 0000006C  7000                     moveq.l    D0, 0x00
  53. 0000006E  245F                     movea.l    A2, [A7]+
  54. 00000070  4E75                     rts
  55. 00000072  2F0A                     move.l     -[A7], A2
  56. 00000074  302F 0008                move.w     D0, [A7 + 0x8]
  57. 00000078  0280 0000 8000           andi.l     D0, 0x8000
  58. 0000007E  4A80                     tst.l      D0
  59. 00000080  6714                     beq        +0x16 /* 00000096 */
  60. 00000082  302F 000A                move.w     D0, [A7 + 0xA]
  61. 00000086  0280 0000 8000           andi.l     D0, 0x8000
  62. 0000008C  4A80                     tst.l      D0
  63. 0000008E  6706                     beq        +0x8 /* 00000096 */
  64. 00000090  7001                     moveq.l    D0, 0x01
  65. 00000092  245F                     movea.l    A2, [A7]+
  66. 00000094  4E75                     rts
  67. label00000096:
  68. 00000096  4A6F 0008                tst.w      [A7 + 0x8]
  69. 0000009A  6F00 008C                ble        +0x8E /* 00000128 */
  70. 0000009E  206D 1C30                movea.l    A0, [A5 + 0x1C30]
  71. 000000A2  2050                     movea.l    A0, [A0]
  72. 000000A4  2050                     movea.l    A0, [A0]
  73. 000000A6  302F 0008                move.w     D0, [A7 + 0x8]
  74. 000000AA  B068 000A                cmp.w      D0, [A0 + 0xA]
  75. 000000AE  6E78                     bgt        +0x7A /* 00000128 */
  76. 000000B0  4A6F 000A                tst.w      [A7 + 0xA]
  77. 000000B4  6F72                     ble        +0x74 /* 00000128 */
  78. 000000B6  302F 0008                move.w     D0, [A7 + 0x8]
  79. 000000BA  48C0                     ext.l      D0
  80. 000000BC  5380                     subq.l     D0, 1
  81. 000000BE  4C3C 0800 0000           movem.w    A3, 0x0
  82. 000000C4  0018 206D                ori.b      [A0]+, 0x6D /* 'm' */
  83. 000000C8  1C30 2050                move.b     D6, [A0 + D2.w + 0x50]
  84. 000000CC  2250                     movea.l    A1, [A0]
  85. 000000CE  3031 0820                move.w     D0, [A1 + D0 + 0x20]
  86. 000000D2  48C0                     ext.l      D0
  87. 000000D4  5380                     subq.l     D0, 1
  88. 000000D6  4C3C 0800 0000           movem.w    A3, 0x0
  89. 000000DC  0166                     bchg       -[A6], D0
  90. 000000DE  206D 14A8                movea.l    A0, [A5 + 0x14A8]
  91. 000000E2  2050                     movea.l    A0, [A0]
  92. 000000E4  D1C0                     add.l      A0, D0
  93. 000000E6  41E8 0014                lea.l      A0, [A0 + 0x14]
  94. 000000EA  302F 000A                move.w     D0, [A7 + 0xA]
  95. 000000EE  B068 0160                cmp.w      D0, [A0 + 0x160]
  96. 000000F2  6E34                     bgt        +0x36 /* 00000128 */
  97. 000000F4  4267                     clr.w      -[A7]
  98. 000000F6  2F2F 000A                move.l     -[A7], [A7 + 0xA]
  99. 000000FA  4EAD B608                jsr        [A5 - 0x49F8]
  100. 000000FE  4A00                     tst.b      D0
  101. 00000100  5C4F                     addq.w     A7, 6
  102. 00000102  6624                     bne        +0x26 /* 00000128 */
  103. 00000104  2F2F 0008                move.l     -[A7], [A7 + 0x8]
  104. 00000108  4EAD B5F8                jsr        [A5 - 0x4A08]
  105. 0000010C  2448                     movea.l    A2, A0
  106. 0000010E  200A                     move.l     D0, A2
  107. 00000110  4A80                     tst.l      D0
  108. 00000112  584F                     addq.w     A7, 4
  109. 00000114  6708                     beq        +0xA /* 0000011E */
  110. 00000116  0C2A 000E 000E           cmpi.b     [A2 + 0xE], 0xE
  111. 0000011C  6704                     beq        +0x6 /* 00000122 */
  112. label0000011E:
  113. 0000011E  7000                     moveq.l    D0, 0x00
  114. 00000120  6002                     bra        +0x4 /* 00000124 */
  115. label00000122:
  116. 00000122  7001                     moveq.l    D0, 0x01
  117. label00000124:
  118. 00000124  245F                     movea.l    A2, [A7]+
  119. 00000126  4E75                     rts
  120. label00000128:
  121. 00000128  7000                     moveq.l    D0, 0x00
  122. 0000012A  245F                     movea.l    A2, [A7]+
  123. 0000012C  4E75                     rts
  124. 0000012E  2F0A                     move.l     -[A7], A2
  125. 00000130  302F 0008                move.w     D0, [A7 + 0x8]
  126. 00000134  0280 0000 8000           andi.l     D0, 0x8000
  127. 0000013A  4A80                     tst.l      D0
  128. 0000013C  6714                     beq        +0x16 /* 00000152 */
  129. 0000013E  302F 000A                move.w     D0, [A7 + 0xA]
  130. 00000142  0280 0000 8000           andi.l     D0, 0x8000
  131. 00000148  4A80                     tst.l      D0
  132. 0000014A  6706                     beq        +0x8 /* 00000152 */
  133. 0000014C  7001                     moveq.l    D0, 0x01
  134. 0000014E  245F                     movea.l    A2, [A7]+
  135. 00000150  4E75                     rts
  136. label00000152:
  137. 00000152  2F2F 0008                move.l     -[A7], [A7 + 0x8]
  138. 00000156  4EAD B600                jsr        [A5 - 0x4A00]
  139. 0000015A  2448                     movea.l    A2, A0
  140. 0000015C  200A                     move.l     D0, A2
  141. 0000015E  4A80                     tst.l      D0
  142. 00000160  584F                     addq.w     A7, 4
  143. 00000162  6708                     beq        +0xA /* 0000016C */
  144. 00000164  0C2A 000E 000E           cmpi.b     [A2 + 0xE], 0xE
  145. 0000016A  6706                     beq        +0x8 /* 00000172 */
  146. label0000016C:
  147. 0000016C  7000                     moveq.l    D0, 0x00
  148. 0000016E  245F                     movea.l    A2, [A7]+
  149. 00000170  4E75                     rts
  150. label00000172:
  151. 00000172  102A 0033                move.b     D0, [A2 + 0x33]
  152. 00000176  7202                     moveq.l    D1, 0x02
  153. 00000178  C081                     and.l      D0, D1
  154. 0000017A  6706                     beq        +0x8 /* 00000182 */
  155. 0000017C  7001                     moveq.l    D0, 0x01
  156. 0000017E  245F                     movea.l    A2, [A7]+
  157. 00000180  4E75                     rts
  158. label00000182:
  159. 00000182  7000                     moveq.l    D0, 0x00
  160. 00000184  245F                     movea.l    A2, [A7]+
  161. 00000186  4E75                     rts
  162. fn00000188:
  163. 00000188  2F0A                     move.l     -[A7], A2
  164. 0000018A  302F 0008                move.w     D0, [A7 + 0x8]
  165. 0000018E  0280 0000 8000           andi.l     D0, 0x8000
  166. 00000194  4A80                     tst.l      D0
  167. 00000196  6724                     beq        +0x26 /* 000001BC */
  168. 00000198  302F 000A                move.w     D0, [A7 + 0xA]
  169. 0000019C  0280 0000 8000           andi.l     D0, 0x8000
  170. 000001A2  4A80                     tst.l      D0
  171. 000001A4  6716                     beq        +0x18 /* 000001BC */
  172. 000001A6  302F 0008                move.w     D0, [A7 + 0x8]
  173. 000001AA  0280 0000 00FF           andi.l     D0, 0xFF
  174. 000001B0  4C3C 0800 0000           movem.w    A3, 0x0
  175. 000001B6  00FA                     .incomplete
  176. 000001B8  245F                     movea.l    A2, [A7]+
  177. 000001BA  4E75                     rts
  178. label000001BC:
  179. 000001BC  2F2F 0008                move.l     -[A7], [A7 + 0x8]
  180. 000001C0  4EAD B5F8                jsr        [A5 - 0x4A08]
  181. 000001C4  2448                     movea.l    A2, A0
  182. 000001C6  200A                     move.l     D0, A2
  183. 000001C8  4A80                     tst.l      D0
  184. 000001CA  584F                     addq.w     A7, 4
  185. 000001CC  6708                     beq        +0xA /* 000001D6 */
  186. 000001CE  0C2A 000E 000E           cmpi.b     [A2 + 0xE], 0xE
  187. 000001D4  6706                     beq        +0x8 /* 000001DC */
  188. label000001D6:
  189. 000001D6  7000                     moveq.l    D0, 0x00
  190. 000001D8  245F                     movea.l    A2, [A7]+
  191. 000001DA  4E75                     rts
  192. label000001DC:
  193. 000001DC  306A 0034                movea.w    A0, [A2 + 0x34]
  194. 000001E0  2008                     move.l     D0, A0
  195. 000001E2  245F                     movea.l    A2, [A7]+
  196. 000001E4  4E75                     rts
  197. fn000001E6:
  198. 000001E6  48E7 1020                movem.l    -[A7], D3,A2
  199. 000001EA  302F 000C                move.w     D0, [A7 + 0xC]
  200. 000001EE  0280 0000 8000           andi.l     D0, 0x8000
  201. 000001F4  4A80                     tst.l      D0
  202. 000001F6  6722                     beq        +0x24 /* 0000021A */
  203. 000001F8  362F 000E                move.w     D3, [A7 + 0xE]
  204. 000001FC  48C3                     ext.l      D3
  205. 000001FE  2003                     move.l     D0, D3
  206. 00000200  0280 0000 8000           andi.l     D0, 0x8000
  207. 00000206  4A80                     tst.l      D0
  208. 00000208  6710                     beq        +0x12 /* 0000021A */
  209. 0000020A  2003                     move.l     D0, D3
  210. 0000020C  0280 0000 7FFF           andi.l     D0, 0x7FFF
  211. 00000212  E080                     asr        D0, 8
  212. 00000214  4CDF 0408                movem.l    D3,A2, [A7]+
  213. 00000218  4E75                     rts
  214. label0000021A:
  215. 0000021A  2F2F 000C                move.l     -[A7], [A7 + 0xC]
  216. 0000021E  4EAD B5F8                jsr        [A5 - 0x4A08]
  217. 00000222  2448                     movea.l    A2, A0
  218. 00000224  200A                     move.l     D0, A2
  219. 00000226  4A80                     tst.l      D0
  220. 00000228  584F                     addq.w     A7, 4
  221. 0000022A  6708                     beq        +0xA /* 00000234 */
  222. 0000022C  0C2A 000E 000E           cmpi.b     [A2 + 0xE], 0xE
  223. 00000232  6708                     beq        +0xA /* 0000023C */
  224. label00000234:
  225. 00000234  7000                     moveq.l    D0, 0x00
  226. 00000236  4CDF 0408                movem.l    D3,A2, [A7]+
  227. 0000023A  4E75                     rts
  228. label0000023C:
  229. 0000023C  102A 0032                move.b     D0, [A2 + 0x32]
  230. 00000240  4880                     ext.w      D0
  231. 00000242  4CDF 0408                movem.l    D3,A2, [A7]+
  232. 00000246  4E75                     rts
  233. fn00000248:
  234. 00000248  48E7 1020                movem.l    -[A7], D3,A2
  235. 0000024C  302F 000C                move.w     D0, [A7 + 0xC]
  236. 00000250  0280 0000 8000           andi.l     D0, 0x8000
  237. 00000256  4A80                     tst.l      D0
  238. 00000258  6720                     beq        +0x22 /* 0000027A */
  239. 0000025A  362F 000E                move.w     D3, [A7 + 0xE]
  240. 0000025E  48C3                     ext.l      D3
  241. 00000260  2003                     move.l     D0, D3
  242. 00000262  0280 0000 8000           andi.l     D0, 0x8000
  243. 00000268  4A80                     tst.l      D0
  244. 0000026A  670E                     beq        +0x10 /* 0000027A */
  245. 0000026C  2003                     move.l     D0, D3
  246. 0000026E  0280 0000 00FF           andi.l     D0, 0xFF
  247. 00000274  4CDF 0408                movem.l    D3,A2, [A7]+
  248. 00000278  4E75                     rts
  249. label0000027A:
  250. 0000027A  2F2F 000C                move.l     -[A7], [A7 + 0xC]
  251. 0000027E  4EAD B5F8                jsr        [A5 - 0x4A08]
  252. 00000282  2448                     movea.l    A2, A0
  253. 00000284  200A                     move.l     D0, A2
  254. 00000286  4A80                     tst.l      D0
  255. 00000288  584F                     addq.w     A7, 4
  256. 0000028A  6708                     beq        +0xA /* 00000294 */
  257. 0000028C  0C2A 000E 000E           cmpi.b     [A2 + 0xE], 0xE
  258. 00000292  6708                     beq        +0xA /* 0000029C */
  259. label00000294:
  260. 00000294  7000                     moveq.l    D0, 0x00
  261. 00000296  4CDF 0408                movem.l    D3,A2, [A7]+
  262. 0000029A  4E75                     rts
  263. label0000029C:
  264. 0000029C  7000                     moveq.l    D0, 0x00
  265. 0000029E  102A 0031                move.b     D0, [A2 + 0x31]
  266. 000002A2  4CDF 0408                movem.l    D3,A2, [A7]+
  267. 000002A6  4E75                     rts
  268. 000002A8  594F                     subq.w     A7, 4
  269. 000002AA  342F 0012                move.w     D2, [A7 + 0x12]
  270. 000002AE  4A42                     tst.w      D2
  271. 000002B0  6702                     beq        +0x4 /* 000002B4 */
  272. 000002B2  7401                     moveq.l    D2, 0x01
  273. label000002B4:
  274. 000002B4  302F 0010                move.w     D0, [A7 + 0x10]
  275. 000002B8  0280 0000 00FF           andi.l     D0, 0xFF
  276. 000002BE  322F 000C                move.w     D1, [A7 + 0xC]
  277. 000002C2  48C1                     ext.l      D1
  278. 000002C4  E189                     lsl        D1, 8
  279. 000002C6  8280                     or.l       D1, D0
  280. 000002C8  0081 0000 8000           ori.l      D1, 0x8000
  281. 000002CE  3F41 0002                move.w     [A7 + 0x2], D1
  282. 000002D2  302F 000E                move.w     D0, [A7 + 0xE]
  283. 000002D6  48C0                     ext.l      D0
  284. 000002D8  3202                     move.w     D1, D2
  285. 000002DA  48C1                     ext.l      D1
  286. 000002DC  E189                     lsl        D1, 8
  287. 000002DE  8280                     or.l       D1, D0
  288. 000002E0  0081 0000 8000           ori.l      D1, 0x8000
  289. 000002E6  3E81                     move.w     [A7], D1
  290. 000002E8  206F 0008                movea.l    A0, [A7 + 0x8]
  291. 000002EC  2097                     move.l     [A0], [A7]
  292. 000002EE  584F                     addq.w     A7, 4
  293. 000002F0  4E75                     rts
  294. 000002F2  206F 0004                movea.l    A0, [A7 + 0x4]
  295. 000002F6  4A28 00A6                tst.b      [A0 + 0xA6]
  296. 000002FA  6604                     bne        +0x6 /* 00000300 */
  297. 000002FC  7001                     moveq.l    D0, 0x01
  298. 000002FE  4E75                     rts
  299. label00000300:
  300. 00000300  7000                     moveq.l    D0, 0x00
  301. 00000302  4E75                     rts
  302. 00000304  554F                     subq.w     A7, 2
  303. 00000306  206F 0006                movea.l    A0, [A7 + 0x6]
  304. 0000030A  4A28 00A6                tst.b      [A0 + 0xA6]
  305. 0000030E  6636                     bne        +0x38 /* 00000346 */
  306. 00000310  3028 0098                move.w     D0, [A0 + 0x98]
  307. 00000314  0280 0000 7FFF           andi.l     D0, 0x7FFF
  308. 0000031A  E080                     asr        D0, 8
  309. 0000031C  3E80                     move.w     [A7], D0
  310. 0000031E  48C0                     ext.l      D0
  311. 00000320  0480 0000 0017           subi.l     D0, 0x17
  312. 00000326  6712                     beq        +0x14 /* 0000033A */
  313. 00000328  0480 0000 001B           subi.l     D0, 0x1B
  314. 0000032E  670A                     beq        +0xC /* 0000033A */
  315. 00000330  5380                     subq.l     D0, 1
  316. 00000332  6706                     beq        +0x8 /* 0000033A */
  317. 00000334  5380                     subq.l     D0, 1
  318. 00000336  6702                     beq        +0x4 /* 0000033A */
  319. 00000338  6006                     bra        +0x8 /* 00000340 */
  320. label0000033A:
  321. 0000033A  7001                     moveq.l    D0, 0x01
  322. 0000033C  544F                     addq.w     A7, 2
  323. 0000033E  4E75                     rts
  324. label00000340:
  325. 00000340  7000                     moveq.l    D0, 0x00
  326. 00000342  544F                     addq.w     A7, 2
  327. 00000344  4E75                     rts
  328. label00000346:
  329. 00000346  7000                     moveq.l    D0, 0x00
  330. 00000348  544F                     addq.w     A7, 2
  331. 0000034A  4E75                     rts
  332. 0000034C  4E75                     rts
  333. 0000034E  4E74 0004                rtd        0x0004
  334. fn00000352:
  335. 00000352  302F 0004                move.w     D0, [A7 + 0x4]
  336. 00000356  B06F 0006                cmp.w      D0, [A7 + 0x6]
  337. 0000035A  6F06                     ble        +0x8 /* 00000362 */
  338. 0000035C  302F 0004                move.w     D0, [A7 + 0x4]
  339. 00000360  4E75                     rts
  340. label00000362:
  341. 00000362  302F 0006                move.w     D0, [A7 + 0x6]
  342. 00000366  4E75                     rts
  343. fn00000368:
  344. 00000368  302F 0004                move.w     D0, [A7 + 0x4]
  345. 0000036C  B06F 0006                cmp.w      D0, [A7 + 0x6]
  346. 00000370  6C06                     bge        +0x8 /* 00000378 */
  347. 00000372  302F 0004                move.w     D0, [A7 + 0x4]
  348. 00000376  4E75                     rts
  349. label00000378:
  350. 00000378  302F 0006                move.w     D0, [A7 + 0x6]
  351. 0000037C  4E75                     rts
  352. fn0000037E:
  353. 0000037E  48E7 1C3A                movem.l    -[A7], D3,D4,D5,A2,A3,A4,A6
  354. 00000382  2A2F 0020                move.l     D5, [A7 + 0x20]
  355. 00000386  2C6F 0024                movea.l    A6, [A7 + 0x24]
  356. 0000038A  266F 0028                movea.l    A3, [A7 + 0x28]
  357. 0000038E  244B                     movea.l    A2, A3
  358. 00000390  206B 0032                movea.l    A0, [A3 + 0x32]
  359. 00000394  2850                     movea.l    A4, [A0]
  360. 00000396  4A2D 20A8                tst.b      [A5 + 0x20A8]
  361. 0000039A  674A                     beq        +0x4C /* 000003E6 */
  362. 0000039C  486A 0036                pea.l      [A2 + 0x36]
  363. 000003A0  4EAD B3F8                jsr        [A5 - 0x4C08]
  364. 000003A4  2648                     movea.l    A3, A0
  365. 000003A6  206A 002A                movea.l    A0, [A2 + 0x2A]
  366. 000003AA  A069                     syscall    HGetState
  367. 000003AC  49C0                     lea.l      A4, D0
  368. 000003AE  1800                     move.b     D4, D0
  369. 000003B0  204B                     movea.l    A0, A3
  370. 000003B2  A069                     syscall    HGetState
  371. 000003B4  49C0                     lea.l      A4, D0
  372. 000003B6  1600                     move.b     D3, D0
  373. 000003B8  204B                     movea.l    A0, A3
  374. 000003BA  A029                     syscall    HLock
  375. 000003BC  206A 002A                movea.l    A0, [A2 + 0x2A]
  376. 000003C0  A029                     syscall    HLock
  377. 000003C2  2F13                     move.l     -[A7], [A3]
  378. 000003C4  206A 002A                movea.l    A0, [A2 + 0x2A]
  379. 000003C8  2F10                     move.l     -[A7], [A0]
  380. 000003CA  2F05                     move.l     -[A7], D5
  381. 000003CC  2F0E                     move.l     -[A7], A6
  382. 000003CE  4267                     clr.w      -[A7]
  383. 000003D0  2F14                     move.l     -[A7], [A4]
  384. 000003D2  A8EC                     syscall    CopyBits
  385. 000003D4  206A 002A                movea.l    A0, [A2 + 0x2A]
  386. 000003D8  1004                     move.b     D0, D4
  387. 000003DA  A06A                     syscall    HSetState
  388. 000003DC  204B                     movea.l    A0, A3
  389. 000003DE  1003                     move.b     D0, D3
  390. 000003E0  A06A                     syscall    HSetState
  391. 000003E2  584F                     addq.w     A7, 4
  392. 000003E4  6012                     bra        +0x14 /* 000003F8 */
  393. label000003E6:
  394. 000003E6  486A 004C                pea.l      [A2 + 0x4C]
  395. 000003EA  486A 001C                pea.l      [A2 + 0x1C]
  396. 000003EE  2F05                     move.l     -[A7], D5
  397. 000003F0  2F0E                     move.l     -[A7], A6
  398. 000003F2  4267                     clr.w      -[A7]
  399. 000003F4  2F14                     move.l     -[A7], [A4]
  400. 000003F6  A8EC                     syscall    CopyBits
  401. label000003F8:
  402. 000003F8  4CDF 5C38                movem.l    D3,D4,D5,A2,A3,A4,A6, [A7]+
  403. 000003FC  4E75                     rts
  404. fn000003FE:
  405. 000003FE  302F 0004                move.w     D0, [A7 + 0x4]
  406. 00000402  7200                     moveq.l    D1, 0x00
  407. 00000404  600C                     bra        +0xE /* 00000412 */
  408. label00000406:
  409. 00000406  0C40 0001                cmpi.w     D0, 0x1
  410. 0000040A  6F0C                     ble        +0xE /* 00000418 */
  411. 0000040C  48C0                     ext.l      D0
  412. 0000040E  E280                     asr        D0, 1
  413. 00000410  5241                     addq.w     D1, 1
  414. label00000412:
  415. 00000412  0C41 0005                cmpi.w     D1, 0x5
  416. 00000416  6FEE                     ble        -0x10 /* 00000406 */
  417. label00000418:
  418. 00000418  3001                     move.w     D0, D1
  419. 0000041A  4E75                     rts
  420. fn0000041C:
  421. 0000041C  2F2F 0004                move.l     -[A7], [A7 + 0x4]
  422. 00000420  A870                     syscall    LocalToGlobal
  423. 00000422  206F 0004                movea.l    A0, [A7 + 0x4]
  424. 00000426  4868 0004                pea.l      [A0 + 0x4]
  425. 0000042A  A870                     syscall    LocalToGlobal
  426. 0000042C  4E75                     rts
  427. fn0000042E:
  428. 0000042E  48E7 1C30                movem.l    -[A7], D3,D4,D5,A2,A3
  429. 00000432  246F 001E                movea.l    A2, [A7 + 0x1E]
  430. 00000436  266F 001A                movea.l    A3, [A7 + 0x1A]
  431. 0000043A  3A2F 0018                move.w     D5, [A7 + 0x18]
  432. 0000043E  204B                     movea.l    A0, A3
  433. 00000440  A029                     syscall    HLock
  434. 00000442  2493                     move.l     [A2], [A3]
  435. 00000444  2052                     movea.l    A0, [A2]
  436. 00000446  3810                     move.w     D4, [A0]
  437. 00000448  2012                     move.l     D0, [A2]
  438. 0000044A  5480                     addq.l     D0, 2
  439. 0000044C  2480                     move.l     [A2], D0
  440. 0000044E  BA44                     cmp.w      D5, D4
  441. 00000450  6E1E                     bgt        +0x20 /* 00000470 */
  442. 00000452  7601                     moveq.l    D3, 0x01
  443. 00000454  6016                     bra        +0x18 /* 0000046C */
  444. label00000456:
  445. 00000456  2052                     movea.l    A0, [A2]
  446. 00000458  3810                     move.w     D4, [A0]
  447. 0000045A  3004                     move.w     D0, D4
  448. 0000045C  48C0                     ext.l      D0
  449. 0000045E  E588                     lsl        D0, 2
  450. 00000460  2212                     move.l     D1, [A2]
  451. 00000462  5481                     addq.l     D1, 2
  452. 00000464  D280                     add.l      D1, D0
  453. 00000466  2481                     move.l     [A2], D1
  454. 00000468  48C3                     ext.l      D3
  455. 0000046A  5283                     addq.l     D3, 1
  456. label0000046C:
  457. 0000046C  B645                     cmp.w      D3, D5
  458. 0000046E  6DE6                     blt        -0x18 /* 00000456 */
  459. label00000470:
  460. 00000470  4CDF 0C38                movem.l    D3,D4,D5,A2,A3, [A7]+
  461. 00000474  4E74 000A                rtd        0x000A
  462. fn00000478:
  463. 00000478  48E7 1030                movem.l    -[A7], D3,A2,A3
  464. 0000047C  266F 0010                movea.l    A3, [A7 + 0x10]
  465. 00000480  7007                     moveq.l    D0, 0x07
  466. 00000482  262F 0014                move.l     D3, [A7 + 0x14]
  467. 00000486  7415                     moveq.l    D2, 0x15
  468. 00000488  E4A3                     asr        D3, D2
  469. 0000048A  C680                     and.l      D3, D0
  470. 0000048C  246F 0018                movea.l    A2, [A7 + 0x18]
  471. 00000490  588A                     addq.l     A2, 4
  472. 00000492  3003                     move.w     D0, D3
  473. 00000494  48C0                     ext.l      D0
  474. 00000496  0C80 0000 0006           cmpi.l     D0, 0x6
  475. 0000049C  627A                     bhi        +0x7C /* 00000518 */
  476. 0000049E  303B 0206                move.w     D0, [PC + D0.w * 2 + 0x6]
  477. 000004A2  4EFB 0002                jmp        [PC + D0.w + 0x2]
  478. 000004A6  000E 0014                ori.b      A6, 0x14
  479. 000004AA  002E 0048 004E           ori.b      [A6 + 0x4E], 0x48 /* 'H' */
  480. 000004B0  005C 0062                ori.w      [A4]+, 0x62 /* 'b' */
  481. 000004B4  34AB 0008                move.w     [A2], [A3 + 0x8]
  482. 000004B8  605E                     bra        +0x60 /* 00000518 */
  483. 000004BA  302B 000E                move.w     D0, [A3 + 0xE]
  484. 000004BE  48C0                     ext.l      D0
  485. 000004C0  322A 0004                move.w     D1, [A2 + 0x4]
  486. 000004C4  48C1                     ext.l      D1
  487. 000004C6  9280                     sub.l      D1, D0
  488. 000004C8  302B 0012                move.w     D0, [A3 + 0x12]
  489. 000004CC  48C0                     ext.l      D0
  490. 000004CE  9280                     sub.l      D1, D0
  491. 000004D0  3481                     move.w     [A2], D1
  492. 000004D2  6044                     bra        +0x46 /* 00000518 */
  493. 000004D4  302B 000E                move.w     D0, [A3 + 0xE]
  494. 000004D8  48C0                     ext.l      D0
  495. 000004DA  322B 0008                move.w     D1, [A3 + 0x8]
  496. 000004DE  48C1                     ext.l      D1
  497. 000004E0  9280                     sub.l      D1, D0
  498. 000004E2  302B 0012                move.w     D0, [A3 + 0x12]
  499. 000004E6  48C0                     ext.l      D0
  500. 000004E8  9280                     sub.l      D1, D0
  501. 000004EA  3481                     move.w     [A2], D1
  502. 000004EC  602A                     bra        +0x2C /* 00000518 */
  503. 000004EE  34AB 001A                move.w     [A2], [A3 + 0x1A]
  504. 000004F2  6024                     bra        +0x26 /* 00000518 */
  505. 000004F4  302B 001A                move.w     D0, [A3 + 0x1A]
  506. 000004F8  48C0                     ext.l      D0
  507. 000004FA  5280                     addq.l     D0, 1
  508. 000004FC  E280                     asr        D0, 1
  509. 000004FE  3480                     move.w     [A2], D0
  510. 00000500  6016                     bra        +0x18 /* 00000518 */
  511. 00000502  34AB 0018                move.w     [A2], [A3 + 0x18]
  512. 00000506  6010                     bra        +0x12 /* 00000518 */
  513. 00000508  302B 0004                move.w     D0, [A3 + 0x4]
  514. 0000050C  48C0                     ext.l      D0
  515. 0000050E  322A 0004                move.w     D1, [A2 + 0x4]
  516. 00000512  48C1                     ext.l      D1
  517. 00000514  9280                     sub.l      D1, D0
  518. 00000516  3481                     move.w     [A2], D1
  519. label00000518:
  520. 00000518  4CDF 0C08                movem.l    D3,A2,A3, [A7]+
  521. 0000051C  4E74 000C                rtd        0x000C
  522. fn00000520:
  523. 00000520  48E7 1030                movem.l    -[A7], D3,A2,A3
  524. 00000524  266F 0010                movea.l    A3, [A7 + 0x10]
  525. 00000528  7007                     moveq.l    D0, 0x07
  526. 0000052A  262F 0014                move.l     D3, [A7 + 0x14]
  527. 0000052E  7412                     moveq.l    D2, 0x12
  528. 00000530  E4A3                     asr        D3, D2
  529. 00000532  C680                     and.l      D3, D0
  530. 00000534  246F 0018                movea.l    A2, [A7 + 0x18]
  531. 00000538  588A                     addq.l     A2, 4
  532. 0000053A  3003                     move.w     D0, D3
  533. 0000053C  48C0                     ext.l      D0
  534. 0000053E  0C80 0000 0005           cmpi.l     D0, 0x5
  535. 00000544  6200 0080                bhi        +0x82 /* 000005C6 */
  536. 00000548  303B 0206                move.w     D0, [PC + D0.w * 2 + 0x6]
  537. 0000054C  4EFB 0002                jmp        [PC + D0.w + 0x2]
  538. 00000550  000C 0014                ori.b      A4, 0x14
  539. 00000554  0030 004C 0054           ori.b      [A0 + D0.w + 0x54], 0x4C /* 'L' */
  540. 0000055A  0064 356B                ori.w      -[A4], 0x356B /* '5k' */
  541. 0000055E  000A 0002                ori.b      A2, 0x2
  542. 00000562  6062                     bra        +0x64 /* 000005C6 */
  543. 00000564  302B 000C                move.w     D0, [A3 + 0xC]
  544. 00000568  48C0                     ext.l      D0
  545. 0000056A  322A 0006                move.w     D1, [A2 + 0x6]
  546. 0000056E  48C1                     ext.l      D1
  547. 00000570  9280                     sub.l      D1, D0
  548. 00000572  302B 0010                move.w     D0, [A3 + 0x10]
  549. 00000576  48C0                     ext.l      D0
  550. 00000578  9280                     sub.l      D1, D0
  551. 0000057A  3541 0002                move.w     [A2 + 0x2], D1
  552. 0000057E  6046                     bra        +0x48 /* 000005C6 */
  553. 00000580  302B 000C                move.w     D0, [A3 + 0xC]
  554. 00000584  48C0                     ext.l      D0
  555. 00000586  322B 000A                move.w     D1, [A3 + 0xA]
  556. 0000058A  48C1                     ext.l      D1
  557. 0000058C  9280                     sub.l      D1, D0
  558. 0000058E  302B 0010                move.w     D0, [A3 + 0x10]
  559. 00000592  48C0                     ext.l      D0
  560. 00000594  9280                     sub.l      D1, D0
  561. 00000596  3541 0002                move.w     [A2 + 0x2], D1
  562. 0000059A  602A                     bra        +0x2C /* 000005C6 */
  563. 0000059C  356B 0018 0002           move.w     [A2 + 0x2], [A3 + 0x18]
  564. 000005A2  6022                     bra        +0x24 /* 000005C6 */
  565. 000005A4  302B 0018                move.w     D0, [A3 + 0x18]
  566. 000005A8  48C0                     ext.l      D0
  567. 000005AA  5280                     addq.l     D0, 1
  568. 000005AC  E280                     asr        D0, 1
  569. 000005AE  3540 0002                move.w     [A2 + 0x2], D0
  570. 000005B2  6012                     bra        +0x14 /* 000005C6 */
  571. 000005B4  302B 0006                move.w     D0, [A3 + 0x6]
  572. 000005B8  48C0                     ext.l      D0
  573. 000005BA  322A 0006                move.w     D1, [A2 + 0x6]
  574. 000005BE  48C1                     ext.l      D1
  575. 000005C0  9280                     sub.l      D1, D0
  576. 000005C2  3541 0002                move.w     [A2 + 0x2], D1
  577. label000005C6:
  578. 000005C6  4CDF 0C08                movem.l    D3,A2,A3, [A7]+
  579. 000005CA  4E74 000C                rtd        0x000C
  580. fn000005CE:
  581. 000005CE  48E7 1030                movem.l    -[A7], D3,A2,A3
  582. 000005D2  266F 0010                movea.l    A3, [A7 + 0x10]
  583. 000005D6  7007                     moveq.l    D0, 0x07
  584. 000005D8  262F 0014                move.l     D3, [A7 + 0x14]
  585. 000005DC  740F                     moveq.l    D2, 0x0F
  586. 000005DE  E4A3                     asr        D3, D2
  587. 000005E0  C680                     and.l      D3, D0
  588. 000005E2  246F 0018                movea.l    A2, [A7 + 0x18]
  589. 000005E6  588A                     addq.l     A2, 4
  590. 000005E8  3003                     move.w     D0, D3
  591. 000005EA  48C0                     ext.l      D0
  592. 000005EC  0C80 0000 0006           cmpi.l     D0, 0x6
  593. 000005F2  6200 00A4                bhi        +0xA6 /* 00000698 */
  594. 000005F6  303B 0206                move.w     D0, [PC + D0.w * 2 + 0x6]
  595. 000005FA  4EFB 0002                jmp        [PC + D0.w + 0x2]
  596. 000005FE  000E 0018                ori.b      A6, 0x18
  597. 00000602  0032 004E 0060           ori.b      [A2 + D0.w + 0x60], 0x4E /* 'N' */
  598. 00000608  006E 008A 356B           ori.w      [A6 + 0x356B], 0x8A
  599. 0000060E  0008 0004                ori.b      A0, 0x4
  600. 00000612  6000 0084                bra        +0x86 /* 00000698 */
  601. 00000616  302B 000E                move.w     D0, [A3 + 0xE]
  602. 0000061A  48C0                     ext.l      D0
  603. 0000061C  3212                     move.w     D1, [A2]
  604. 0000061E  48C1                     ext.l      D1
  605. 00000620  D280                     add.l      D1, D0
  606. 00000622  302B 0012                move.w     D0, [A3 + 0x12]
  607. 00000626  48C0                     ext.l      D0
  608. 00000628  D081                     add.l      D0, D1
  609. 0000062A  3540 0004                move.w     [A2 + 0x4], D0
  610. 0000062E  6068                     bra        +0x6A /* 00000698 */
  611. 00000630  302B 000E                move.w     D0, [A3 + 0xE]
  612. 00000634  48C0                     ext.l      D0
  613. 00000636  322A 0004                move.w     D1, [A2 + 0x4]
  614. 0000063A  48C1                     ext.l      D1
  615. 0000063C  9280                     sub.l      D1, D0
  616. 0000063E  302B 0012                move.w     D0, [A3 + 0x12]
  617. 00000642  48C0                     ext.l      D0
  618. 00000644  9280                     sub.l      D1, D0
  619. 00000646  3541 0004                move.w     [A2 + 0x4], D1
  620. 0000064A  604C                     bra        +0x4E /* 00000698 */
  621. 0000064C  302B 000E                move.w     D0, [A3 + 0xE]
  622. 00000650  48C0                     ext.l      D0
  623. 00000652  3212                     move.w     D1, [A2]
  624. 00000654  48C1                     ext.l      D1
  625. 00000656  D280                     add.l      D1, D0
  626. 00000658  3541 0004                move.w     [A2 + 0x4], D1
  627. 0000065C  603A                     bra        +0x3C /* 00000698 */
  628. 0000065E  302B 0004                move.w     D0, [A3 + 0x4]
  629. 00000662  48C0                     ext.l      D0
  630. 00000664  4480                     neg.l      D0
  631. 00000666  3540 0004                move.w     [A2 + 0x4], D0
  632. 0000066A  602C                     bra        +0x2E /* 00000698 */
  633. 0000066C  302B 000E                move.w     D0, [A3 + 0xE]
  634. 00000670  48C0                     ext.l      D0
  635. 00000672  D080                     add.l      D0, D0
  636. 00000674  3212                     move.w     D1, [A2]
  637. 00000676  48C1                     ext.l      D1
  638. 00000678  D280                     add.l      D1, D0
  639. 0000067A  302B 0012                move.w     D0, [A3 + 0x12]
  640. 0000067E  48C0                     ext.l      D0
  641. 00000680  D081                     add.l      D0, D1
  642. 00000682  3540 0004                move.w     [A2 + 0x4], D0
  643. 00000686  6010                     bra        +0x12 /* 00000698 */
  644. 00000688  302B 0004                move.w     D0, [A3 + 0x4]
  645. 0000068C  48C0                     ext.l      D0
  646. 0000068E  3212                     move.w     D1, [A2]
  647. 00000690  48C1                     ext.l      D1
  648. 00000692  D280                     add.l      D1, D0
  649. 00000694  3541 0004                move.w     [A2 + 0x4], D1
  650. label00000698:
  651. 00000698  4CDF 0C08                movem.l    D3,A2,A3, [A7]+
  652. 0000069C  4E74 000C                rtd        0x000C
  653. fn000006A0:
  654. 000006A0  48E7 1030                movem.l    -[A7], D3,A2,A3
  655. 000006A4  266F 0010                movea.l    A3, [A7 + 0x10]
  656. 000006A8  7007                     moveq.l    D0, 0x07
  657. 000006AA  262F 0014                move.l     D3, [A7 + 0x14]
  658. 000006AE  740C                     moveq.l    D2, 0x0C
  659. 000006B0  E4A3                     asr        D3, D2
  660. 000006B2  C680                     and.l      D3, D0
  661. 000006B4  246F 0018                movea.l    A2, [A7 + 0x18]
  662. 000006B8  588A                     addq.l     A2, 4
  663. 000006BA  3003                     move.w     D0, D3
  664. 000006BC  48C0                     ext.l      D0
  665. 000006BE  0C80 0000 0005           cmpi.l     D0, 0x5
  666. 000006C4  6200 0084                bhi        +0x86 /* 0000074A */
  667. 000006C8  303B 0206                move.w     D0, [PC + D0.w * 2 + 0x6]
  668. 000006CC  4EFB 0002                jmp        [PC + D0.w + 0x2]
  669. 000006D0  000C 0014                ori.b      A4, 0x14
  670. 000006D4  0030 004C 0060           ori.b      [A0 + D0.w + 0x60], 0x4C /* 'L' */
  671. 000006DA  0074 356B 000A           ori.w      [A4 + D0.w + 0xA], 0x356B /* '5k' */
  672. 000006E0  0006 6066                ori.b      D6, 0x66 /* 'f' */
  673. 000006E4  302B 000C                move.w     D0, [A3 + 0xC]
  674. 000006E8  48C0                     ext.l      D0
  675. 000006EA  322B 000A                move.w     D1, [A3 + 0xA]
  676. 000006EE  48C1                     ext.l      D1
  677. 000006F0  D280                     add.l      D1, D0
  678. 000006F2  302B 0010                move.w     D0, [A3 + 0x10]
  679. 000006F6  48C0                     ext.l      D0
  680. 000006F8  D081                     add.l      D0, D1
  681. 000006FA  3540 0006                move.w     [A2 + 0x6], D0
  682. 000006FE  604A                     bra        +0x4C /* 0000074A */
  683. 00000700  302B 000C                move.w     D0, [A3 + 0xC]
  684. 00000704  48C0                     ext.l      D0
  685. 00000706  322A 0002                move.w     D1, [A2 + 0x2]
  686. 0000070A  48C1                     ext.l      D1
  687. 0000070C  D280                     add.l      D1, D0
  688. 0000070E  302B 0010                move.w     D0, [A3 + 0x10]
  689. 00000712  48C0                     ext.l      D0
  690. 00000714  D081                     add.l      D0, D1
  691. 00000716  3540 0006                move.w     [A2 + 0x6], D0
  692. 0000071A  602E                     bra        +0x30 /* 0000074A */
  693. 0000071C  302B 000C                move.w     D0, [A3 + 0xC]
  694. 00000720  48C0                     ext.l      D0
  695. 00000722  322A 0002                move.w     D1, [A2 + 0x2]
  696. 00000726  48C1                     ext.l      D1
  697. 00000728  D280                     add.l      D1, D0
  698. 0000072A  3541 0006                move.w     [A2 + 0x6], D1
  699. 0000072E  601A                     bra        +0x1C /* 0000074A */
  700. 00000730  302B 0006                move.w     D0, [A3 + 0x6]
  701. 00000734  48C0                     ext.l      D0
  702. 00000736  322A 0002                move.w     D1, [A2 + 0x2]
  703. 0000073A  48C1                     ext.l      D1
  704. 0000073C  D280                     add.l      D1, D0
  705. 0000073E  3541 0006                move.w     [A2 + 0x6], D1
  706. 00000742  6006                     bra        +0x8 /* 0000074A */
  707. 00000744  356B 0006 0006           move.w     [A2 + 0x6], [A3 + 0x6]
  708. label0000074A:
  709. 0000074A  4CDF 0C08                movem.l    D3,A2,A3, [A7]+
  710. 0000074E  4E74 000C                rtd        0x000C
  711. fn00000752:
  712. 00000752  48E7 1038                movem.l    -[A7], D3,A2,A3,A4
  713. 00000756  286F 001C                movea.l    A4, [A7 + 0x1C]
  714. 0000075A  246F 0014                movea.l    A2, [A7 + 0x14]
  715. 0000075E  7007                     moveq.l    D0, 0x07
  716. 00000760  262F 0018                move.l     D3, [A7 + 0x18]
  717. 00000764  7409                     moveq.l    D2, 0x09
  718. 00000766  E4A3                     asr        D3, D2
  719. 00000768  C680                     and.l      D3, D0
  720. 0000076A  264C                     movea.l    A3, A4
  721. 0000076C  508B                     addq.l     A3, 8
  722. 0000076E  588B                     addq.l     A3, 4
  723. 00000770  3003                     move.w     D0, D3
  724. 00000772  48C0                     ext.l      D0
  725. 00000774  0C80 0000 0006           cmpi.l     D0, 0x6
  726. 0000077A  6270                     bhi        +0x72 /* 000007EC */
  727. 0000077C  303B 0206                move.w     D0, [PC + D0.w * 2 + 0x6]
  728. 00000780  4EFB 0002                jmp        [PC + D0.w + 0x2]
  729. 00000784  000E 0014                ori.b      A6, 0x14
  730. 00000788  0020 0032                ori.b      -[A0], 0x32 /* '2' */
  731. 0000078C  003A 0048 0056           ori.b      [PC + 0x56 /* 000007E4, value 0x48 'H' */], 0x48 /* 'H' */
  732. 00000792  36AA 000E                move.w     [A3], [A2 + 0xE]
  733. 00000796  6054                     bra        +0x56 /* 000007EC */
  734. 00000798  302A 000E                move.w     D0, [A2 + 0xE]
  735. 0000079C  48C0                     ext.l      D0
  736. 0000079E  4480                     neg.l      D0
  737. 000007A0  3680                     move.w     [A3], D0
  738. 000007A2  6048                     bra        +0x4A /* 000007EC */
  739. 000007A4  302A 0012                move.w     D0, [A2 + 0x12]
  740. 000007A8  48C0                     ext.l      D0
  741. 000007AA  322A 000E                move.w     D1, [A2 + 0xE]
  742. 000007AE  48C1                     ext.l      D1
  743. 000007B0  D280                     add.l      D1, D0
  744. 000007B2  3681                     move.w     [A3], D1
  745. 000007B4  6036                     bra        +0x38 /* 000007EC */
  746. 000007B6  396A 0004 000C           move.w     [A4 + 0xC], [A2 + 0x4]
  747. 000007BC  602E                     bra        +0x30 /* 000007EC */
  748. 000007BE  302A 0004                move.w     D0, [A2 + 0x4]
  749. 000007C2  48C0                     ext.l      D0
  750. 000007C4  D080                     add.l      D0, D0
  751. 000007C6  3940 000C                move.w     [A4 + 0xC], D0
  752. 000007CA  6020                     bra        +0x22 /* 000007EC */
  753. 000007CC  302A 0004                move.w     D0, [A2 + 0x4]
  754. 000007D0  48C0                     ext.l      D0
  755. 000007D2  4480                     neg.l      D0
  756. 000007D4  3940 000C                move.w     [A4 + 0xC], D0
  757. 000007D8  6012                     bra        +0x14 /* 000007EC */
  758. 000007DA  302A 0012                move.w     D0, [A2 + 0x12]
  759. 000007DE  48C0                     ext.l      D0
  760. 000007E0  322A 000E                move.w     D1, [A2 + 0xE]
  761. 000007E4  48C1                     ext.l      D1
  762. 000007E6  4481                     neg.l      D1
  763. 000007E8  9280                     sub.l      D1, D0
  764. 000007EA  3681                     move.w     [A3], D1
  765. label000007EC:
  766. 000007EC  4CDF 1C08                movem.l    D3,A2,A3,A4, [A7]+
  767. 000007F0  4E74 000C                rtd        0x000C
  768. fn000007F4:
  769. 000007F4  48E7 1038                movem.l    -[A7], D3,A2,A3,A4
  770. 000007F8  286F 001C                movea.l    A4, [A7 + 0x1C]
  771. 000007FC  246F 0014                movea.l    A2, [A7 + 0x14]
  772. 00000800  7007                     moveq.l    D0, 0x07
  773. 00000802  262F 0018                move.l     D3, [A7 + 0x18]
  774. 00000806  EC83                     asr        D3, 6
  775. 00000808  C680                     and.l      D3, D0
  776. 0000080A  264C                     movea.l    A3, A4
  777. 0000080C  508B                     addq.l     A3, 8
  778. 0000080E  588B                     addq.l     A3, 4
  779. 00000810  3003                     move.w     D0, D3
  780. 00000812  48C0                     ext.l      D0
  781. 00000814  0C80 0000 0005           cmpi.l     D0, 0x5
  782. 0000081A  6268                     bhi        +0x6A /* 00000884 */
  783. 0000081C  303B 0206                move.w     D0, [PC + D0.w * 2 + 0x6]
  784. 00000820  4EFB 0002                jmp        [PC + D0.w + 0x2]
  785. 00000824  000C 0014                ori.b      A4, 0x14
  786. 00000828  0022 0036                ori.b      -[A2], 0x36 /* '6' */
  787. 0000082C  003E 004C                ori.b      <<invalid special address>>, 0x4C /* 'L' */
  788. 00000830  376A 000C 0002           move.w     [A3 + 0x2], [A2 + 0xC]
  789. 00000836  604C                     bra        +0x4E /* 00000884 */
  790. 00000838  302A 000C                move.w     D0, [A2 + 0xC]
  791. 0000083C  48C0                     ext.l      D0
  792. 0000083E  4480                     neg.l      D0
  793. 00000840  3740 0002                move.w     [A3 + 0x2], D0
  794. 00000844  603E                     bra        +0x40 /* 00000884 */
  795. 00000846  302A 0010                move.w     D0, [A2 + 0x10]
  796. 0000084A  48C0                     ext.l      D0
  797. 0000084C  322A 000C                move.w     D1, [A2 + 0xC]
  798. 00000850  48C1                     ext.l      D1
  799. 00000852  D280                     add.l      D1, D0
  800. 00000854  3741 0002                move.w     [A3 + 0x2], D1
  801. 00000858  602A                     bra        +0x2C /* 00000884 */
  802. 0000085A  396A 0006 000E           move.w     [A4 + 0xE], [A2 + 0x6]
  803. 00000860  6022                     bra        +0x24 /* 00000884 */
  804. 00000862  302A 0006                move.w     D0, [A2 + 0x6]
  805. 00000866  48C0                     ext.l      D0
  806. 00000868  4480                     neg.l      D0
  807. 0000086A  3940 000E                move.w     [A4 + 0xE], D0
  808. 0000086E  6014                     bra        +0x16 /* 00000884 */
  809. 00000870  302A 0010                move.w     D0, [A2 + 0x10]
  810. 00000874  48C0                     ext.l      D0
  811. 00000876  322A 000C                move.w     D1, [A2 + 0xC]
  812. 0000087A  48C1                     ext.l      D1
  813. 0000087C  4481                     neg.l      D1
  814. 0000087E  9280                     sub.l      D1, D0
  815. 00000880  3741 0002                move.w     [A3 + 0x2], D1
  816. label00000884:
  817. 00000884  4CDF 1C08                movem.l    D3,A2,A3,A4, [A7]+
  818. 00000888  4E74 000C                rtd        0x000C
  819. fn0000088C:
  820. 0000088C  48E7 1030                movem.l    -[A7], D3,A2,A3
  821. 00000890  246F 0010                movea.l    A2, [A7 + 0x10]
  822. 00000894  7007                     moveq.l    D0, 0x07
  823. 00000896  262F 0014                move.l     D3, [A7 + 0x14]
  824. 0000089A  E683                     asr        D3, 3
  825. 0000089C  C680                     and.l      D3, D0
  826. 0000089E  266F 0018                movea.l    A3, [A7 + 0x18]
  827. 000008A2  508B                     addq.l     A3, 8
  828. 000008A4  588B                     addq.l     A3, 4
  829. 000008A6  3003                     move.w     D0, D3
  830. 000008A8  48C0                     ext.l      D0
  831. 000008AA  0C80 0000 0004           cmpi.l     D0, 0x4
  832. 000008B0  626C                     bhi        +0x6E /* 0000091E */
  833. 000008B2  303B 0206                move.w     D0, [PC + D0.w * 2 + 0x6]
  834. 000008B6  4EFB 0002                jmp        [PC + D0.w + 0x2]
  835. 000008BA  000A 0012                ori.b      A2, 0x12
  836. 000008BE  0020 0036                ori.b      -[A0], 0x36 /* '6' */
  837. 000008C2  0052 376A                ori.w      [A2], 0x376A /* '7j' */
  838. 000008C6  000E 0004                ori.b      A6, 0x4
  839. 000008CA  6052                     bra        +0x54 /* 0000091E */
  840. 000008CC  302A 000E                move.w     D0, [A2 + 0xE]
  841. 000008D0  48C0                     ext.l      D0
  842. 000008D2  4480                     neg.l      D0
  843. 000008D4  3740 0004                move.w     [A3 + 0x4], D0
  844. 000008D8  6044                     bra        +0x46 /* 0000091E */
  845. 000008DA  302A 0012                move.w     D0, [A2 + 0x12]
  846. 000008DE  48C0                     ext.l      D0
  847. 000008E0  322A 000E                move.w     D1, [A2 + 0xE]
  848. 000008E4  48C1                     ext.l      D1
  849. 000008E6  4481                     neg.l      D1
  850. 000008E8  9280                     sub.l      D1, D0
  851. 000008EA  3741 0004                move.w     [A3 + 0x4], D1
  852. 000008EE  602E                     bra        +0x30 /* 0000091E */
  853. 000008F0  302A 000E                move.w     D0, [A2 + 0xE]
  854. 000008F4  48C0                     ext.l      D0
  855. 000008F6  322B 0004                move.w     D1, [A3 + 0x4]
  856. 000008FA  48C1                     ext.l      D1
  857. 000008FC  9280                     sub.l      D1, D0
  858. 000008FE  302A 0012                move.w     D0, [A2 + 0x12]
  859. 00000902  48C0                     ext.l      D0
  860. 00000904  9280                     sub.l      D1, D0
  861. 00000906  3741 0004                move.w     [A3 + 0x4], D1
  862. 0000090A  6012                     bra        +0x14 /* 0000091E */
  863. 0000090C  302A 0012                move.w     D0, [A2 + 0x12]
  864. 00000910  48C0                     ext.l      D0
  865. 00000912  322A 000E                move.w     D1, [A2 + 0xE]
  866. 00000916  48C1                     ext.l      D1
  867. 00000918  D280                     add.l      D1, D0
  868. 0000091A  3741 0004                move.w     [A3 + 0x4], D1
  869. label0000091E:
  870. 0000091E  4CDF 0C08                movem.l    D3,A2,A3, [A7]+
  871. 00000922  4E74 000C                rtd        0x000C
  872. fn00000926:
  873. 00000926  48E7 1038                movem.l    -[A7], D3,A2,A3,A4
  874. 0000092A  286F 001C                movea.l    A4, [A7 + 0x1C]
  875. 0000092E  246F 0014                movea.l    A2, [A7 + 0x14]
  876. 00000932  7607                     moveq.l    D3, 0x07
  877. 00000934  C6AF 0018                and.l      D3, [A7 + 0x18]
  878. 00000938  264C                     movea.l    A3, A4
  879. 0000093A  508B                     addq.l     A3, 8
  880. 0000093C  588B                     addq.l     A3, 4
  881. 0000093E  3003                     move.w     D0, D3
  882. 00000940  48C0                     ext.l      D0
  883. 00000942  0C80 0000 0004           cmpi.l     D0, 0x4
  884. 00000948  625E                     bhi        +0x60 /* 000009A8 */
  885. 0000094A  303B 0206                move.w     D0, [PC + D0.w * 2 + 0x6]
  886. 0000094E  4EFB 0002                jmp        [PC + D0.w + 0x2]
  887. 00000952  000A 0012                ori.b      A2, 0x12
  888. 00000956  0020 0036                ori.b      -[A0], 0x36 /* '6' */
  889. 0000095A  0044 376A                ori.w      D4, 0x376A /* '7j' */
  890. 0000095E  000C 0006                ori.b      A4, 0x6
  891. 00000962  6044                     bra        +0x46 /* 000009A8 */
  892. 00000964  302A 000C                move.w     D0, [A2 + 0xC]
  893. 00000968  48C0                     ext.l      D0
  894. 0000096A  4480                     neg.l      D0
  895. 0000096C  3740 0006                move.w     [A3 + 0x6], D0
  896. 00000970  6036                     bra        +0x38 /* 000009A8 */
  897. 00000972  302A 0010                move.w     D0, [A2 + 0x10]
  898. 00000976  48C0                     ext.l      D0
  899. 00000978  322A 000C                move.w     D1, [A2 + 0xC]
  900. 0000097C  48C1                     ext.l      D1
  901. 0000097E  4481                     neg.l      D1
  902. 00000980  9280                     sub.l      D1, D0
  903. 00000982  3741 0006                move.w     [A3 + 0x6], D1
  904. 00000986  6020                     bra        +0x22 /* 000009A8 */
  905. 00000988  302A 0006                move.w     D0, [A2 + 0x6]
  906. 0000098C  48C0                     ext.l      D0
  907. 0000098E  D080                     add.l      D0, D0
  908. 00000990  3940 0012                move.w     [A4 + 0x12], D0
  909. 00000994  6012                     bra        +0x14 /* 000009A8 */
  910. 00000996  302A 0010                move.w     D0, [A2 + 0x10]
  911. 0000099A  48C0                     ext.l      D0
  912. 0000099C  322A 000C                move.w     D1, [A2 + 0xC]
  913. 000009A0  48C1                     ext.l      D1
  914. 000009A2  D280                     add.l      D1, D0
  915. 000009A4  3741 0006                move.w     [A3 + 0x6], D1
  916. label000009A8:
  917. 000009A8  4CDF 1C08                movem.l    D3,A2,A3,A4, [A7]+
  918. 000009AC  4E74 000C                rtd        0x000C
  919. fn000009B0:
  920. 000009B0  226F 0004                movea.l    A1, [A7 + 0x4]
  921. 000009B4  2049                     movea.l    A0, A1
  922. 000009B6  5C88                     addq.l     A0, 6
  923. 000009B8  3028 0002                move.w     D0, [A0 + 0x2]
  924. 000009BC  48C0                     ext.l      D0
  925. 000009BE  3228 0006                move.w     D1, [A0 + 0x6]
  926. 000009C2  48C1                     ext.l      D1
  927. 000009C4  9280                     sub.l      D1, D0
  928. 000009C6  700F                     moveq.l    D0, 0x0F
  929. 000009C8  D280                     add.l      D1, D0
  930. 000009CA  E681                     asr        D1, 3
  931. 000009CC  0281 0000 FFFE           andi.l     D1, 0xFFFE
  932. 000009D2  3341 0004                move.w     [A1 + 0x4], D1
  933. 000009D6  3010                     move.w     D0, [A0]
  934. 000009D8  48C0                     ext.l      D0
  935. 000009DA  3428 0004                move.w     D2, [A0 + 0x4]
  936. 000009DE  48C2                     ext.l      D2
  937. 000009E0  9480                     sub.l      D2, D0
  938. 000009E2  3029 0004                move.w     D0, [A1 + 0x4]
  939. 000009E6  48C0                     ext.l      D0
  940. 000009E8  4C02 0800                movem.w    A3, D2
  941. 000009EC  2400                     move.l     D2, D0
  942. 000009EE  2F42 0008                move.l     [A7 + 0x8], D2
  943. 000009F2  4E74 0004                rtd        0x0004
  944. fn000009F6:
  945. 000009F6  48E7 1038                movem.l    -[A7], D3,A2,A3,A4
  946. 000009FA  266F 001C                movea.l    A3, [A7 + 0x1C]
  947. 000009FE  286F 0014                movea.l    A4, [A7 + 0x14]
  948. 00000A02  4294                     clr.l      [A4]
  949. 00000A04  206F 0018                movea.l    A0, [A7 + 0x18]
  950. 00000A08  2750 0006                move.l     [A3 + 0x6], [A0]
  951. 00000A0C  2768 0004 000A           move.l     [A3 + 0xA], [A0 + 0x4]
  952. 00000A12  426B 0004                clr.w      [A3 + 0x4]
  953. 00000A16  594F                     subq.w     A7, 4
  954. 00000A18  2F0B                     move.l     -[A7], A3
  955. 00000A1A  4EBA FF94                jsr        [PC - 0x6C /* 000009B0 */]
  956. 00000A1E  201F                     move.l     D0, [A7]+
  957. 00000A20  2600                     move.l     D3, D0
  958. 00000A22  2F03                     move.l     -[A7], D3
  959. 00000A24  4EAD C258                jsr        [A5 - 0x3DA8]
  960. 00000A28  2448                     movea.l    A2, A0
  961. 00000A2A  3EB8 0220                move.w     [A7], [0x00000220 /* MemErr */]
  962. 00000A2E  301F                     move.w     D0, [A7]+
  963. 00000A30  4A40                     tst.w      D0
  964. 00000A32  544F                     addq.w     A7, 2
  965. 00000A34  6706                     beq        +0x8 /* 00000A3C */
  966. 00000A36  422F 0020                clr.b      [A7 + 0x20]
  967. 00000A3A  600E                     bra        +0x10 /* 00000A4A */
  968. label00000A3C:
  969. 00000A3C  288A                     move.l     [A4], A2
  970. 00000A3E  204A                     movea.l    A0, A2
  971. 00000A40  A029                     syscall    HLock
  972. 00000A42  2692                     move.l     [A3], [A2]
  973. 00000A44  1F7C 0001 0020           move.b     [A7 + 0x20], 0x1
  974. label00000A4A:
  975. 00000A4A  4CDF 1C08                movem.l    D3,A2,A3,A4, [A7]+
  976. 00000A4E  4E74 000C                rtd        0x000C
  977. fn00000A52:
  978. 00000A52  48E7 1830                movem.l    -[A7], D3,D4,A2,A3
  979. 00000A56  514F                     subq.w     A7, 8
  980. 00000A58  266F 001C                movea.l    A3, [A7 + 0x1C]
  981. 00000A5C  206F 0020                movea.l    A0, [A7 + 0x20]
  982. 00000A60  2E90                     move.l     [A7], [A0]
  983. 00000A62  2F68 0004 0004           move.l     [A7 + 0x4], [A0 + 0x4]
  984. 00000A68  4293                     clr.l      [A3]
  985. 00000A6A  4857                     pea.l      [A7]
  986. 00000A6C  4EBA F9AE                jsr        [PC - 0x652 /* 0000041C */]
  987. 00000A70  302F 0008                move.w     D0, [A7 + 0x8]
  988. 00000A74  48C0                     ext.l      D0
  989. 00000A76  5380                     subq.l     D0, 1
  990. 00000A78  3F40 0008                move.w     [A7 + 0x8], D0
  991. 00000A7C  302F 000A                move.w     D0, [A7 + 0xA]
  992. 00000A80  48C0                     ext.l      D0
  993. 00000A82  5380                     subq.l     D0, 1
  994. 00000A84  3F40 000A                move.w     [A7 + 0xA], D0
  995. 00000A88  AA29                     syscall    GetDeviceList
  996. 00000A8A  205F                     movea.l    A0, [A7]+
  997. 00000A8C  2448                     movea.l    A2, A0
  998. 00000A8E  7800                     moveq.l    D4, 0x00
  999. 00000A90  606A                     bra        +0x6C /* 00000AFC */
  1000. label00000A92:
  1001. 00000A92  2052                     movea.l    A0, [A2]
  1002. 00000A94  3628 0014                move.w     D3, [A0 + 0x14]
  1003. 00000A98  3003                     move.w     D0, D3
  1004. 00000A9A  0280 0000 8000           andi.l     D0, 0x8000
  1005. 00000AA0  4A80                     tst.l      D0
  1006. 00000AA2  6744                     beq        +0x46 /* 00000AE8 */
  1007. 00000AA4  3003                     move.w     D0, D3
  1008. 00000AA6  0280 0000 2000           andi.l     D0, 0x2000 /* ' \0' */
  1009. 00000AAC  4A80                     tst.l      D0
  1010. 00000AAE  6738                     beq        +0x3A /* 00000AE8 */
  1011. 00000AB0  554F                     subq.w     A7, 2
  1012. 00000AB2  2F2F 0002                move.l     -[A7], [A7 + 0x2]
  1013. 00000AB6  2052                     movea.l    A0, [A2]
  1014. 00000AB8  4868 0022                pea.l      [A0 + 0x22]
  1015. 00000ABC  A8AD                     syscall    PtInRect
  1016. 00000ABE  101F                     move.b     D0, [A7]+
  1017. 00000AC0  6726                     beq        +0x28 /* 00000AE8 */
  1018. 00000AC2  554F                     subq.w     A7, 2
  1019. 00000AC4  2F2F 0006                move.l     -[A7], [A7 + 0x6]
  1020. 00000AC8  2052                     movea.l    A0, [A2]
  1021. 00000ACA  4868 0022                pea.l      [A0 + 0x22]
  1022. 00000ACE  A8AD                     syscall    PtInRect
  1023. 00000AD0  101F                     move.b     D0, [A7]+
  1024. 00000AD2  6714                     beq        +0x16 /* 00000AE8 */
  1025. 00000AD4  3003                     move.w     D0, D3
  1026. 00000AD6  0280 0000 0800           andi.l     D0, 0x800
  1027. 00000ADC  4A80                     tst.l      D0
  1028. 00000ADE  6602                     bne        +0x4 /* 00000AE2 */
  1029. 00000AE0  268A                     move.l     [A3], A2
  1030. label00000AE2:
  1031. 00000AE2  422F 0024                clr.b      [A7 + 0x24]
  1032. 00000AE6  6020                     bra        +0x22 /* 00000B08 */
  1033. label00000AE8:
  1034. 00000AE8  0C44 0064                cmpi.w     D4, 0x64 /* 'd' */
  1035. 00000AEC  6E14                     bgt        +0x16 /* 00000B02 */
  1036. 00000AEE  48C4                     ext.l      D4
  1037. 00000AF0  5284                     addq.l     D4, 1
  1038. 00000AF2  594F                     subq.w     A7, 4
  1039. 00000AF4  2F0A                     move.l     -[A7], A2
  1040. 00000AF6  AA2B                     syscall    GetNextDevice
  1041. 00000AF8  205F                     movea.l    A0, [A7]+
  1042. 00000AFA  2448                     movea.l    A2, A0
  1043. label00000AFC:
  1044. 00000AFC  200A                     move.l     D0, A2
  1045. 00000AFE  4A80                     tst.l      D0
  1046. 00000B00  6690                     bne        -0x6E /* 00000A92 */
  1047. label00000B02:
  1048. 00000B02  1F7C 0001 0024           move.b     [A7 + 0x24], 0x1
  1049. label00000B08:
  1050. 00000B08  504F                     addq.w     A7, 8
  1051. 00000B0A  4CDF 0C18                movem.l    D3,D4,A2,A3, [A7]+
  1052. 00000B0E  4E74 0008                rtd        0x0008
  1053. fn00000B12:
  1054. 00000B12  48E7 1F3A                movem.l    -[A7], D3,D4,D5,D6,D7,A2,A3,A4,A6
  1055. 00000B16  4FEF FFF4                lea.l      A7, [A7 - 0xC]
  1056. 00000B1A  2C6F 0046                movea.l    A6, [A7 + 0x46]
  1057. 00000B1E  282F 0042                move.l     D4, [A7 + 0x42]
  1058. 00000B22  2A2F 003E                move.l     D5, [A7 + 0x3E]
  1059. 00000B26  286F 003A                movea.l    A4, [A7 + 0x3A]
  1060. 00000B2A  3E2F 0038                move.w     D7, [A7 + 0x38]
  1061. 00000B2E  266F 0034                movea.l    A3, [A7 + 0x34]
  1062. 00000B32  244E                     movea.l    A2, A6
  1063. 00000B34  2604                     move.l     D3, D4
  1064. 00000B36  7218                     moveq.l    D1, 0x18
  1065. 00000B38  E2A3                     asr        D3, D1
  1066. 00000B3A  0283 0000 00FF           andi.l     D3, 0xFF
  1067. 00000B40  7000                     moveq.l    D0, 0x00
  1068. 00000B42  1003                     move.b     D0, D3
  1069. 00000B44  2480                     move.l     [A2], D0
  1070. 00000B46  7008                     moveq.l    D0, 0x08
  1071. 00000B48  B092                     cmp.l      D0, [A2]
  1072. 00000B4A  660C                     bne        +0xE /* 00000B58 */
  1073. 00000B4C  486A 0004                pea.l      [A2 + 0x4]
  1074. 00000B50  42A7                     clr.l      -[A7]
  1075. 00000B52  42A7                     clr.l      -[A7]
  1076. 00000B54  A8A7                     syscall    SetRect
  1077. 00000B56  600C                     bra        +0xE /* 00000B64 */
  1078. label00000B58:
  1079. 00000B58  2045                     movea.l    A0, D5
  1080. 00000B5A  2550 0004                move.l     [A2 + 0x4], [A0]
  1081. 00000B5E  2568 0004 0008           move.l     [A2 + 0x8], [A0 + 0x4]
  1082. label00000B64:
  1083. 00000B64  486A 000C                pea.l      [A2 + 0xC]
  1084. 00000B68  42A7                     clr.l      -[A7]
  1085. 00000B6A  42A7                     clr.l      -[A7]
  1086. 00000B6C  A8A7                     syscall    SetRect
  1087. 00000B6E  2012                     move.l     D0, [A2]
  1088. 00000B70  5B80                     subq.l     D0, 5
  1089. 00000B72  6710                     beq        +0x12 /* 00000B84 */
  1090. 00000B74  5380                     subq.l     D0, 1
  1091. 00000B76  6700 02B4                beq        +0x2B6 /* 00000E2C */
  1092. 00000B7A  5980                     subq.l     D0, 4
  1093. 00000B7C  6700 010C                beq        +0x10E /* 00000C8A */
  1094. 00000B80  6000 0356                bra        +0x358 /* 00000ED8 */
  1095. label00000B84:
  1096. 00000B84  7607                     moveq.l    D3, 0x07
  1097. 00000B86  C684                     and.l      D3, D4
  1098. 00000B88  3003                     move.w     D0, D3
  1099. 00000B8A  48C0                     ext.l      D0
  1100. 00000B8C  670E                     beq        +0x10 /* 00000B9C */
  1101. 00000B8E  5380                     subq.l     D0, 1
  1102. 00000B90  6734                     beq        +0x36 /* 00000BC6 */
  1103. 00000B92  5380                     subq.l     D0, 1
  1104. 00000B94  673A                     beq        +0x3C /* 00000BD0 */
  1105. 00000B96  5380                     subq.l     D0, 1
  1106. 00000B98  673E                     beq        +0x40 /* 00000BD8 */
  1107. 00000B9A  6042                     bra        +0x44 /* 00000BDE */
  1108. label00000B9C:
  1109. 00000B9C  302B 0016                move.w     D0, [A3 + 0x16]
  1110. 00000BA0  48C0                     ext.l      D0
  1111. 00000BA2  322B 0004                move.w     D1, [A3 + 0x4]
  1112. 00000BA6  48C1                     ext.l      D1
  1113. 00000BA8  4C40 1801                movem.l    D0,A3,A4, D0
  1114. 00000BAC  3741 000E                move.w     [A3 + 0xE], D1
  1115. 00000BB0  302B 0014                move.w     D0, [A3 + 0x14]
  1116. 00000BB4  48C0                     ext.l      D0
  1117. 00000BB6  322B 0006                move.w     D1, [A3 + 0x6]
  1118. 00000BBA  48C1                     ext.l      D1
  1119. 00000BBC  4C40 1801                movem.l    D0,A3,A4, D0
  1120. 00000BC0  3741 000C                move.w     [A3 + 0xC], D1
  1121. 00000BC4  6018                     bra        +0x1A /* 00000BDE */
  1122. label00000BC6:
  1123. 00000BC6  3754 0016                move.w     [A3 + 0x16], [A4]
  1124. 00000BCA  3754 0014                move.w     [A3 + 0x14], [A4]
  1125. 00000BCE  600E                     bra        +0x10 /* 00000BDE */
  1126. label00000BD0:
  1127. 00000BD0  377C 0001 0014           move.w     [A3 + 0x14], 0x1
  1128. 00000BD6  6006                     bra        +0x8 /* 00000BDE */
  1129. label00000BD8:
  1130. 00000BD8  377C 0001 0016           move.w     [A3 + 0x16], 0x1
  1131. label00000BDE:
  1132. 00000BDE  302B 0004                move.w     D0, [A3 + 0x4]
  1133. 00000BE2  48C0                     ext.l      D0
  1134. 00000BE4  322B 000E                move.w     D1, [A3 + 0xE]
  1135. 00000BE8  C3EB 0016                muls.w     D1, [A3 + 0x16]
  1136. 00000BEC  B280                     cmp.l      D1, D0
  1137. 00000BEE  6C0C                     bge        +0xE /* 00000BFC */
  1138. 00000BF0  302B 000E                move.w     D0, [A3 + 0xE]
  1139. 00000BF4  48C0                     ext.l      D0
  1140. 00000BF6  5280                     addq.l     D0, 1
  1141. 00000BF8  3740 000E                move.w     [A3 + 0xE], D0
  1142. label00000BFC:
  1143. 00000BFC  302B 0006                move.w     D0, [A3 + 0x6]
  1144. 00000C00  48C0                     ext.l      D0
  1145. 00000C02  322B 000C                move.w     D1, [A3 + 0xC]
  1146. 00000C06  C3EB 0014                muls.w     D1, [A3 + 0x14]
  1147. 00000C0A  B280                     cmp.l      D1, D0
  1148. 00000C0C  6C0C                     bge        +0xE /* 00000C1A */
  1149. 00000C0E  302B 000C                move.w     D0, [A3 + 0xC]
  1150. 00000C12  48C0                     ext.l      D0
  1151. 00000C14  5280                     addq.l     D0, 1
  1152. 00000C16  3740 000C                move.w     [A3 + 0xC], D0
  1153. label00000C1A:
  1154. 00000C1A  486A 000C                pea.l      [A2 + 0xC]
  1155. 00000C1E  486A 0008                pea.l      [A2 + 0x8]
  1156. 00000C22  486A 0004                pea.l      [A2 + 0x4]
  1157. 00000C26  3F2B 0016                move.w     -[A7], [A3 + 0x16]
  1158. 00000C2A  3F2B 0014                move.w     -[A7], [A3 + 0x14]
  1159. 00000C2E  4EBA 13A0                jsr        [PC + 0x13A0 /* 00001FD0 */]
  1160. 00000C32  0C43 0002                cmpi.w     D3, 0x2
  1161. 00000C36  4FEF 0010                lea.l      A7, [A7 + 0x10]
  1162. 00000C3A  6608                     bne        +0xA /* 00000C44 */
  1163. 00000C3C  357C 0001 0010           move.w     [A2 + 0x10], 0x1
  1164. 00000C42  6006                     bra        +0x8 /* 00000C4A */
  1165. label00000C44:
  1166. 00000C44  356B 0014 0010           move.w     [A2 + 0x10], [A3 + 0x14]
  1167. label00000C4A:
  1168. 00000C4A  0C43 0003                cmpi.w     D3, 0x3
  1169. 00000C4E  6608                     bne        +0xA /* 00000C58 */
  1170. 00000C50  357C 0001 000E           move.w     [A2 + 0xE], 0x1
  1171. 00000C56  6006                     bra        +0x8 /* 00000C5E */
  1172. label00000C58:
  1173. 00000C58  356B 0016 000E           move.w     [A2 + 0xE], [A3 + 0x16]
  1174. label00000C5E:
  1175. 00000C5E  362B 0014                move.w     D3, [A3 + 0x14]
  1176. 00000C62  C7EB 0016                muls.w     D3, [A3 + 0x16]
  1177. 00000C66  357C 0001 0012           move.w     [A2 + 0x12], 0x1
  1178. 00000C6C  600E                     bra        +0x10 /* 00000C7C */
  1179. label00000C6E:
  1180. 00000C6E  E283                     asr        D3, 1
  1181. 00000C70  302A 0012                move.w     D0, [A2 + 0x12]
  1182. 00000C74  48C0                     ext.l      D0
  1183. 00000C76  D080                     add.l      D0, D0
  1184. 00000C78  3540 0012                move.w     [A2 + 0x12], D0
  1185. label00000C7C:
  1186. 00000C7C  0C83 0000 7FFF           cmpi.l     D3, 0x7FFF
  1187. 00000C82  6EEA                     bgt        -0x14 /* 00000C6E */
  1188. 00000C84  3883                     move.w     [A4], D3
  1189. 00000C86  6000 02A0                bra        +0x2A2 /* 00000F28 */
  1190. label00000C8A:
  1191. 00000C8A  2A13                     move.l     D5, [A3]
  1192. 00000C8C  2045                     movea.l    A0, D5
  1193. 00000C8E  2068 0032                movea.l    A0, [A0 + 0x32]
  1194. 00000C92  2610                     move.l     D3, [A0]
  1195. 00000C94  4A2D 20A8                tst.b      [A5 + 0x20A8]
  1196. 00000C98  671A                     beq        +0x1C /* 00000CB4 */
  1197. 00000C9A  554F                     subq.w     A7, 2
  1198. 00000C9C  486A 0004                pea.l      [A2 + 0x4]
  1199. 00000CA0  2043                     movea.l    A0, D3
  1200. 00000CA2  4868 0008                pea.l      [A0 + 0x8]
  1201. 00000CA6  4EBA FDAA                jsr        [PC - 0x256 /* 00000A52 */]
  1202. 00000CAA  101F                     move.b     D0, [A7]+
  1203. 00000CAC  2043                     movea.l    A0, D3
  1204. 00000CAE  1140 0010                move.b     [A0 + 0x10], D0
  1205. 00000CB2  6006                     bra        +0x8 /* 00000CBA */
  1206. label00000CB4:
  1207. 00000CB4  2043                     movea.l    A0, D3
  1208. 00000CB6  4228 0010                clr.b      [A0 + 0x10]
  1209. label00000CBA:
  1210. 00000CBA  2045                     movea.l    A0, D5
  1211. 00000CBC  2068 0032                movea.l    A0, [A0 + 0x32]
  1212. 00000CC0  2050                     movea.l    A0, [A0]
  1213. 00000CC2  4A28 0010                tst.b      [A0 + 0x10]
  1214. 00000CC6  6706                     beq        +0x8 /* 00000CCE */
  1215. 00000CC8  4254                     clr.w      [A4]
  1216. 00000CCA  6000 013C                bra        +0x13E /* 00000E08 */
  1217. label00000CCE:
  1218. 00000CCE  4A2D 20A8                tst.b      [A5 + 0x20A8]
  1219. 00000CD2  674A                     beq        +0x4C /* 00000D1E */
  1220. 00000CD4  2045                     movea.l    A0, D5
  1221. 00000CD6  2068 0032                movea.l    A0, [A0 + 0x32]
  1222. 00000CDA  2050                     movea.l    A0, [A0]
  1223. 00000CDC  4AA8 0008                tst.l      [A0 + 0x8]
  1224. 00000CE0  672A                     beq        +0x2C /* 00000D0C */
  1225. 00000CE2  2F6A 0004 0004           move.l     [A7 + 0x4], [A2 + 0x4]
  1226. 00000CE8  2F6A 0008 0008           move.l     [A7 + 0x8], [A2 + 0x8]
  1227. 00000CEE  486F 0004                pea.l      [A7 + 0x4]
  1228. 00000CF2  4EBA F728                jsr        [PC - 0x8D8 /* 0000041C */]
  1229. 00000CF6  2045                     movea.l    A0, D5
  1230. 00000CF8  2068 0032                movea.l    A0, [A0 + 0x32]
  1231. 00000CFC  2050                     movea.l    A0, [A0]
  1232. 00000CFE  2068 0008                movea.l    A0, [A0 + 0x8]
  1233. 00000D02  2050                     movea.l    A0, [A0]
  1234. 00000D04  2C28 0016                move.l     D6, [A0 + 0x16]
  1235. 00000D08  584F                     addq.w     A7, 4
  1236. 00000D0A  6012                     bra        +0x14 /* 00000D1E */
  1237. label00000D0C:
  1238. 00000D0C  2F6A 0004 0004           move.l     [A7 + 0x4], [A2 + 0x4]
  1239. 00000D12  2F6A 0008 0008           move.l     [A7 + 0x8], [A2 + 0x8]
  1240. 00000D18  2045                     movea.l    A0, D5
  1241. 00000D1A  2C28 002A                move.l     D6, [A0 + 0x2A]
  1242. label00000D1E:
  1243. 00000D1E  2004                     move.l     D0, D4
  1244. 00000D20  7201                     moveq.l    D1, 0x01
  1245. 00000D22  C081                     and.l      D0, D1
  1246. 00000D24  4A80                     tst.l      D0
  1247. 00000D26  670C                     beq        +0xE /* 00000D34 */
  1248. 00000D28  3F07                     move.w     -[A7], D7
  1249. 00000D2A  4EBA F6D2                jsr        [PC - 0x92E /* 000003FE */]
  1250. 00000D2E  3600                     move.w     D3, D0
  1251. 00000D30  544F                     addq.w     A7, 2
  1252. 00000D32  601A                     bra        +0x1C /* 00000D4E */
  1253. label00000D34:
  1254. 00000D34  4A2D 20A8                tst.b      [A5 + 0x20A8]
  1255. 00000D38  6712                     beq        +0x14 /* 00000D4C */
  1256. 00000D3A  2046                     movea.l    A0, D6
  1257. 00000D3C  2050                     movea.l    A0, [A0]
  1258. 00000D3E  3F28 0020                move.w     -[A7], [A0 + 0x20]
  1259. 00000D42  4EBA F6BA                jsr        [PC - 0x946 /* 000003FE */]
  1260. 00000D46  3600                     move.w     D3, D0
  1261. 00000D48  544F                     addq.w     A7, 2
  1262. 00000D4A  6002                     bra        +0x4 /* 00000D4E */
  1263. label00000D4C:
  1264. 00000D4C  7600                     moveq.l    D3, 0x00
  1265. label00000D4E:
  1266. 00000D4E  3F3C 0005                move.w     -[A7], 0x5
  1267. 00000D52  3F03                     move.w     -[A7], D3
  1268. 00000D54  4EBA F612                jsr        [PC - 0x9EE /* 00000368 */]
  1269. 00000D58  3540 000C                move.w     [A2 + 0xC], D0
  1270. 00000D5C  2004                     move.l     D0, D4
  1271. 00000D5E  7202                     moveq.l    D1, 0x02
  1272. 00000D60  C081                     and.l      D0, D1
  1273. 00000D62  4A80                     tst.l      D0
  1274. 00000D64  584F                     addq.w     A7, 4
  1275. 00000D66  6700 0098                beq        +0x9A /* 00000E00 */
  1276. 00000D6A  357C FFFF 000E           move.w     [A2 + 0xE], 0xFFFF
  1277. 00000D70  4A2D 20A8                tst.b      [A5 + 0x20A8]
  1278. 00000D74  6760                     beq        +0x62 /* 00000DD6 */
  1279. 00000D76  2045                     movea.l    A0, D5
  1280. 00000D78  4868 0036                pea.l      [A0 + 0x36]
  1281. 00000D7C  4EAD B3F8                jsr        [A5 - 0x4C08]
  1282. 00000D80  2608                     move.l     D3, A0
  1283. 00000D82  2043                     movea.l    A0, D3
  1284. 00000D84  A069                     syscall    HGetState
  1285. 00000D86  49C0                     lea.l      A4, D0
  1286. 00000D88  1740 001C                move.b     [A3 + 0x1C], D0
  1287. 00000D8C  2046                     movea.l    A0, D6
  1288. 00000D8E  A069                     syscall    HGetState
  1289. 00000D90  49C0                     lea.l      A4, D0
  1290. 00000D92  1740 001D                move.b     [A3 + 0x1D], D0
  1291. 00000D96  2043                     movea.l    A0, D3
  1292. 00000D98  A029                     syscall    HLock
  1293. 00000D9A  2046                     movea.l    A0, D6
  1294. 00000D9C  A029                     syscall    HLock
  1295. 00000D9E  2043                     movea.l    A0, D3
  1296. 00000DA0  2F10                     move.l     -[A7], [A0]
  1297. 00000DA2  2046                     movea.l    A0, D6
  1298. 00000DA4  2F10                     move.l     -[A7], [A0]
  1299. 00000DA6  486A 0004                pea.l      [A2 + 0x4]
  1300. 00000DAA  486F 0014                pea.l      [A7 + 0x14]
  1301. 00000DAE  3F2A 000C                move.w     -[A7], [A2 + 0xC]
  1302. 00000DB2  486E 0010                pea.l      [A6 + 0x10]
  1303. 00000DB6  1F2D 20A9                move.b     -[A7], [A5 + 0x20A9]
  1304. 00000DBA  4EAD 9E7A                jsr        [A5 - 0x6186]
  1305. 00000DBE  301F                     move.w     D0, [A7]+
  1306. 00000DC0  3880                     move.w     [A4], D0
  1307. 00000DC2  2046                     movea.l    A0, D6
  1308. 00000DC4  102B 001D                move.b     D0, [A3 + 0x1D]
  1309. 00000DC8  A06A                     syscall    HSetState
  1310. 00000DCA  2043                     movea.l    A0, D3
  1311. 00000DCC  102B 001C                move.b     D0, [A3 + 0x1C]
  1312. 00000DD0  A06A                     syscall    HSetState
  1313. 00000DD2  544F                     addq.w     A7, 2
  1314. 00000DD4  6032                     bra        +0x34 /* 00000E08 */
  1315. label00000DD6:
  1316. 00000DD6  554F                     subq.w     A7, 2
  1317. 00000DD8  2045                     movea.l    A0, D5
  1318. 00000DDA  4868 004C                pea.l      [A0 + 0x4C]
  1319. 00000DDE  2045                     movea.l    A0, D5
  1320. 00000DE0  4868 001C                pea.l      [A0 + 0x1C]
  1321. 00000DE4  486A 0004                pea.l      [A2 + 0x4]
  1322. 00000DE8  486A 0004                pea.l      [A2 + 0x4]
  1323. 00000DEC  3F2A 000C                move.w     -[A7], [A2 + 0xC]
  1324. 00000DF0  486E 0010                pea.l      [A6 + 0x10]
  1325. 00000DF4  4227                     clr.b      -[A7]
  1326. 00000DF6  4EAD 9E7A                jsr        [A5 - 0x6186]
  1327. 00000DFA  301F                     move.w     D0, [A7]+
  1328. 00000DFC  3880                     move.w     [A4], D0
  1329. 00000DFE  6008                     bra        +0xA /* 00000E08 */
  1330. label00000E00:
  1331. 00000E00  38BC 0001                move.w     [A4], 0x1
  1332. 00000E04  426A 000E                clr.w      [A2 + 0xE]
  1333. label00000E08:
  1334. 00000E08  2045                     movea.l    A0, D5
  1335. 00000E0A  2068 0032                movea.l    A0, [A0 + 0x32]
  1336. 00000E0E  2450                     movea.l    A2, [A0]
  1337. 00000E10  4A54                     tst.w      [A4]
  1338. 00000E12  57C0                     seq        D0
  1339. 00000E14  4400                     neg.b      D0
  1340. 00000E16  49C0                     lea.l      A4, D0
  1341. 00000E18  1540 0010                move.b     [A2 + 0x10], D0
  1342. 00000E1C  0C54 0001                cmpi.w     [A4], 0x1
  1343. 00000E20  6C00 0106                bge        +0x108 /* 00000F28 */
  1344. 00000E24  38BC 0001                move.w     [A4], 0x1
  1345. 00000E28  6000 00FE                bra        +0x100 /* 00000F28 */
  1346. label00000E2C:
  1347. 00000E2C  4857                     pea.l      [A7]
  1348. 00000E2E  A874                     syscall    GetPort
  1349. 00000E30  554F                     subq.w     A7, 2
  1350. 00000E32  486A 0004                pea.l      [A2 + 0x4]
  1351. 00000E36  2F05                     move.l     -[A7], D5
  1352. 00000E38  486A 0012                pea.l      [A2 + 0x12]
  1353. 00000E3C  4EBA FBB8                jsr        [PC - 0x448 /* 000009F6 */]
  1354. 00000E40  101F                     move.b     D0, [A7]+
  1355. 00000E42  6700 008A                beq        +0x8C /* 00000ECE */
  1356. 00000E46  4878 0001                push.l     0x1
  1357. 00000E4A  4878 006C                push.l     0x6C /* 'l' */
  1358. 00000E4E  4EAD C2C8                jsr        [A5 - 0x3D38]
  1359. 00000E52  2548 0016                move.l     [A2 + 0x16], A0
  1360. 00000E56  2F2A 0016                move.l     -[A7], [A2 + 0x16]
  1361. 00000E5A  A86F                     syscall    OpenPort
  1362. 00000E5C  486A 0004                pea.l      [A2 + 0x4]
  1363. 00000E60  A875                     syscall    SetPBits/SetPortBits
  1364. 00000E62  2F05                     move.l     -[A7], D5
  1365. 00000E64  A8A3                     syscall    EraseRect
  1366. 00000E66  2F3C 5041 5423           move.l     -[A7], 0x50415423 /* 'PAT#' */
  1367. 00000E6C  3F3C 0585                move.w     -[A7], 0x585
  1368. 00000E70  A9A0                     syscall    GetResource
  1369. 00000E72  205F                     movea.l    A0, [A7]+
  1370. 00000E74  2548 001A                move.l     [A2 + 0x1A], A0
  1371. 00000E78  206A 001A                movea.l    A0, [A2 + 0x1A]
  1372. 00000E7C  2050                     movea.l    A0, [A0]
  1373. 00000E7E  3610                     move.w     D3, [A0]
  1374. 00000E80  48C3                     ext.l      D3
  1375. 00000E82  5383                     subq.l     D3, 1
  1376. 00000E84  3547 001E                move.w     [A2 + 0x1E], D7
  1377. 00000E88  3007                     move.w     D0, D7
  1378. 00000E8A  48C0                     ext.l      D0
  1379. 00000E8C  E280                     asr        D0, 1
  1380. 00000E8E  322A 001E                move.w     D1, [A2 + 0x1E]
  1381. 00000E92  48C1                     ext.l      D1
  1382. 00000E94  B280                     cmp.l      D1, D0
  1383. 00000E96  584F                     addq.w     A7, 4
  1384. 00000E98  6F0A                     ble        +0xC /* 00000EA4 */
  1385. 00000E9A  3007                     move.w     D0, D7
  1386. 00000E9C  48C0                     ext.l      D0
  1387. 00000E9E  E280                     asr        D0, 1
  1388. 00000EA0  3540 001E                move.w     [A2 + 0x1E], D0
  1389. label00000EA4:
  1390. 00000EA4  3007                     move.w     D0, D7
  1391. 00000EA6  48C0                     ext.l      D0
  1392. 00000EA8  3203                     move.w     D1, D3
  1393. 00000EAA  48C1                     ext.l      D1
  1394. 00000EAC  4C40 1801                movem.l    D0,A3,A4, D0
  1395. 00000EB0  5281                     addq.l     D1, 1
  1396. 00000EB2  3881                     move.w     [A4], D1
  1397. 00000EB4  3007                     move.w     D0, D7
  1398. 00000EB6  48C0                     ext.l      D0
  1399. 00000EB8  3203                     move.w     D1, D3
  1400. 00000EBA  48C1                     ext.l      D1
  1401. 00000EBC  4C40 1800                movem.l    A3,A4, D0
  1402. 00000EC0  4A80                     tst.l      D0
  1403. 00000EC2  670E                     beq        +0x10 /* 00000ED2 */
  1404. 00000EC4  3014                     move.w     D0, [A4]
  1405. 00000EC6  48C0                     ext.l      D0
  1406. 00000EC8  5280                     addq.l     D0, 1
  1407. 00000ECA  3880                     move.w     [A4], D0
  1408. 00000ECC  6004                     bra        +0x6 /* 00000ED2 */
  1409. label00000ECE:
  1410. 00000ECE  7001                     moveq.l    D0, 0x01
  1411. 00000ED0  2480                     move.l     [A2], D0
  1412. label00000ED2:
  1413. 00000ED2  2F17                     move.l     -[A7], [A7]
  1414. 00000ED4  A873                     syscall    SetPort
  1415. 00000ED6  6050                     bra        +0x52 /* 00000F28 */
  1416. label00000ED8:
  1417. 00000ED8  2F0E                     move.l     -[A7], A6
  1418. 00000EDA  2F04                     move.l     -[A7], D4
  1419. 00000EDC  2F0B                     move.l     -[A7], A3
  1420. 00000EDE  4EBA F598                jsr        [PC - 0xA68 /* 00000478 */]
  1421. 00000EE2  2F0E                     move.l     -[A7], A6
  1422. 00000EE4  2F04                     move.l     -[A7], D4
  1423. 00000EE6  2F0B                     move.l     -[A7], A3
  1424. 00000EE8  4EBA F636                jsr        [PC - 0x9CA /* 00000520 */]
  1425. 00000EEC  2F0E                     move.l     -[A7], A6
  1426. 00000EEE  2F04                     move.l     -[A7], D4
  1427. 00000EF0  2F0B                     move.l     -[A7], A3
  1428. 00000EF2  4EBA F7AC                jsr        [PC - 0x854 /* 000006A0 */]
  1429. 00000EF6  2F0E                     move.l     -[A7], A6
  1430. 00000EF8  2F04                     move.l     -[A7], D4
  1431. 00000EFA  2F0B                     move.l     -[A7], A3
  1432. 00000EFC  4EBA F6D0                jsr        [PC - 0x930 /* 000005CE */]
  1433. 00000F00  2F0E                     move.l     -[A7], A6
  1434. 00000F02  2F04                     move.l     -[A7], D4
  1435. 00000F04  2F0B                     move.l     -[A7], A3
  1436. 00000F06  4EBA F84A                jsr        [PC - 0x7B6 /* 00000752 */]
  1437. 00000F0A  2F0E                     move.l     -[A7], A6
  1438. 00000F0C  2F04                     move.l     -[A7], D4
  1439. 00000F0E  2F0B                     move.l     -[A7], A3
  1440. 00000F10  4EBA F8E2                jsr        [PC - 0x71E /* 000007F4 */]
  1441. 00000F14  2F0E                     move.l     -[A7], A6
  1442. 00000F16  2F04                     move.l     -[A7], D4
  1443. 00000F18  2F0B                     move.l     -[A7], A3
  1444. 00000F1A  4EBA FA0A                jsr        [PC - 0x5F6 /* 00000926 */]
  1445. 00000F1E  2F0E                     move.l     -[A7], A6
  1446. 00000F20  2F04                     move.l     -[A7], D4
  1447. 00000F22  2F0B                     move.l     -[A7], A3
  1448. 00000F24  4EBA F966                jsr        [PC - 0x69A /* 0000088C */]
  1449. label00000F28:
  1450. 00000F28  4FEF 000C                lea.l      A7, [A7 + 0xC]
  1451. 00000F2C  4CDF 5CF8                movem.l    D3,D4,D5,D6,D7,A2,A3,A4,A6, [A7]+
  1452. 00000F30  4E74 0016                rtd        0x0016
  1453. fn00000F34:
  1454. 00000F34  2F03                     move.l     -[A7], D3
  1455. 00000F36  362F 0008                move.w     D3, [A7 + 0x8]
  1456. 00000F3A  4267                     clr.w      -[A7]
  1457. 00000F3C  3F03                     move.w     -[A7], D3
  1458. 00000F3E  4EBA F412                jsr        [PC - 0xBEE /* 00000352 */]
  1459. 00000F42  3600                     move.w     D3, D0
  1460. 00000F44  48C3                     ext.l      D3
  1461. 00000F46  5283                     addq.l     D3, 1
  1462. 00000F48  3003                     move.w     D0, D3
  1463. 00000F4A  48C0                     ext.l      D0
  1464. 00000F4C  2200                     move.l     D1, D0
  1465. 00000F4E  E089                     lsr        D1, 8
  1466. 00000F50  E089                     lsr        D1, 8
  1467. 00000F52  E089                     lsr        D1, 8
  1468. 00000F54  EE89                     lsr        D1, 7
  1469. 00000F56  D280                     add.l      D1, D0
  1470. 00000F58  E281                     asr        D1, 1
  1471. 00000F5A  3F41 000E                move.w     [A7 + 0xE], D1
  1472. 00000F5E  584F                     addq.w     A7, 4
  1473. 00000F60  261F                     move.l     D3, [A7]+
  1474. 00000F62  4E74 0002                rtd        0x0002
  1475. 00000F66  48E7 1F3A                movem.l    -[A7], D3,D4,D5,D6,D7,A2,A3,A4,A6
  1476. 00000F6A  4FEF FFBA                lea.l      A7, [A7 - 0x46]
  1477. 00000F6E  266F 006E                movea.l    A3, [A7 + 0x6E]
  1478. 00000F72  42A7                     clr.l      -[A7]
  1479. 00000F74  2F2B 002E                move.l     -[A7], [A3 + 0x2E]
  1480. 00000F78  4EBA F20E                jsr        [PC - 0xDF2 /* 00000188 */]
  1481. 00000F7C  3A00                     move.w     D5, D0
  1482. 00000F7E  2F2B 002E                move.l     -[A7], [A3 + 0x2E]
  1483. 00000F82  4EBA F2C4                jsr        [PC - 0xD3C /* 00000248 */]
  1484. 00000F86  3800                     move.w     D4, D0
  1485. 00000F88  2F2B 002E                move.l     -[A7], [A3 + 0x2E]
  1486. 00000F8C  4EBA F258                jsr        [PC - 0xDA8 /* 000001E6 */]
  1487. 00000F90  1C00                     move.b     D6, D0
  1488. 00000F92  0C44 0001                cmpi.w     D4, 0x1
  1489. 00000F96  4FEF 0010                lea.l      A7, [A7 + 0x10]
  1490. 00000F9A  6C02                     bge        +0x4 /* 00000F9E */
  1491. 00000F9C  7801                     moveq.l    D4, 0x01
  1492. label00000F9E:
  1493. 00000F9E  0C44 0080                cmpi.w     D4, 0x80
  1494. 00000FA2  6F04                     ble        +0x6 /* 00000FA8 */
  1495. 00000FA4  383C 0080                move.w     D4, 0x80
  1496. label00000FA8:
  1497. 00000FA8  4A2D 20A8                tst.b      [A5 + 0x20A8]
  1498. 00000FAC  670C                     beq        +0xE /* 00000FBA */
  1499. 00000FAE  206B 0016                movea.l    A0, [A3 + 0x16]
  1500. 00000FB2  2768 0002 002A           move.l     [A3 + 0x2A], [A0 + 0x2]
  1501. 00000FB8  6014                     bra        +0x16 /* 00000FCE */
  1502. label00000FBA:
  1503. 00000FBA  206B 0016                movea.l    A0, [A3 + 0x16]
  1504. 00000FBE  41E8 0002                lea.l      A0, [A0 + 0x2]
  1505. 00000FC2  43EB 001C                lea.l      A1, [A3 + 0x1C]
  1506. 00000FC6  22D8                     move.l     [A1]+, [A0]+
  1507. 00000FC8  22D8                     move.l     [A1]+, [A0]+
  1508. 00000FCA  22D8                     move.l     [A1]+, [A0]+
  1509. 00000FCC  32D8                     move.w     [A1]+, [A0]+
  1510. label00000FCE:
  1511. 00000FCE  2F4B 0028                move.l     [A7 + 0x28], A3
  1512. 00000FD2  7600                     moveq.l    D3, 0x00
  1513. 00000FD4  7000                     moveq.l    D0, 0x00
  1514. 00000FD6  1006                     move.b     D0, D6
  1515. 00000FD8  7201                     moveq.l    D1, 0x01
  1516. 00000FDA  B081                     cmp.l      D0, D1
  1517. 00000FDC  6D00 0788                blt        +0x78A /* 00001766 */
  1518. 00000FE0  7000                     moveq.l    D0, 0x00
  1519. 00000FE2  1006                     move.b     D0, D6
  1520. 00000FE4  7234                     moveq.l    D1, 0x34
  1521. 00000FE6  B081                     cmp.l      D0, D1
  1522. 00000FE8  6E00 077C                bgt        +0x77E /* 00001766 */
  1523. 00000FEC  594F                     subq.w     A7, 4
  1524. 00000FEE  2F3C 5464 7461           move.l     -[A7], 0x54647461 /* 'Tdta' */
  1525. 00000FF4  3F3C 03ED                move.w     -[A7], 0x3ED
  1526. 00000FF8  A9A0                     syscall    GetResource
  1527. 00000FFA  205F                     movea.l    A0, [A7]+
  1528. 00000FFC  2C48                     movea.l    A6, A0
  1529. 00000FFE  200E                     move.l     D0, A6
  1530. 00001000  4A80                     tst.l      D0
  1531. 00001002  6700 0762                beq        +0x764 /* 00001766 */
  1532. 00001006  204E                     movea.l    A0, A6
  1533. 00001008  A04A                     syscall    HNoPurge
  1534. 0000100A  4A45                     tst.w      D5
  1535. 0000100C  6602                     bne        +0x4 /* 00001010 */
  1536. 0000100E  7A10                     moveq.l    D5, 0x10
  1537. label00001010:
  1538. 00001010  4878 0032                push.l     0x32 /* '2' */
  1539. 00001014  4EAD C258                jsr        [A5 - 0x3DA8]
  1540. 00001018  2748 0032                move.l     [A3 + 0x32], A0
  1541. 0000101C  4AAB 0032                tst.l      [A3 + 0x32]
  1542. 00001020  584F                     addq.w     A7, 4
  1543. 00001022  6700 0742                beq        +0x744 /* 00001766 */
  1544. 00001026  206B 0032                movea.l    A0, [A3 + 0x32]
  1545. 0000102A  A029                     syscall    HLock
  1546. 0000102C  206B 0032                movea.l    A0, [A3 + 0x32]
  1547. 00001030  2450                     movea.l    A2, [A0]
  1548. 00001032  42AA 0004                clr.l      [A2 + 0x4]
  1549. 00001036  422A 0010                clr.b      [A2 + 0x10]
  1550. 0000103A  594F                     subq.w     A7, 4
  1551. 0000103C  A8D8                     syscall    NewRgn
  1552. 0000103E  205F                     movea.l    A0, [A7]+
  1553. 00001040  2488                     move.l     [A2], A0
  1554. 00001042  1544 0011                move.b     [A2 + 0x11], D4
  1555. 00001046  42A7                     clr.l      -[A7]
  1556. 00001048  2F2B 002E                move.l     -[A7], [A3 + 0x2E]
  1557. 0000104C  4EBA EFBA                jsr        [PC - 0x1046 /* 00000008 */]
  1558. 00001050  4A00                     tst.b      D0
  1559. 00001052  504F                     addq.w     A7, 8
  1560. 00001054  660C                     bne        +0xE /* 00001062 */
  1561. 00001056  554F                     subq.w     A7, 2
  1562. 00001058  486B 000E                pea.l      [A3 + 0xE]
  1563. 0000105C  A8AE                     syscall    EmptyRect
  1564. 0000105E  101F                     move.b     D0, [A7]+
  1565. 00001060  670E                     beq        +0x10 /* 00001070 */
  1566. label00001062:
  1567. 00001062  2F6B 0002 001C           move.l     [A7 + 0x1C], [A3 + 0x2]
  1568. 00001068  2F6B 0006 0020           move.l     [A7 + 0x20], [A3 + 0x6]
  1569. 0000106E  600C                     bra        +0xE /* 0000107C */
  1570. label00001070:
  1571. 00001070  2F6B 000E 001C           move.l     [A7 + 0x1C], [A3 + 0xE]
  1572. 00001076  2F6B 0012 0020           move.l     [A7 + 0x20], [A3 + 0x12]
  1573. label0000107C:
  1574. 0000107C  7000                     moveq.l    D0, 0x00
  1575. 0000107E  1006                     move.b     D0, D6
  1576. 00001080  0480 0000 0032           subi.l     D0, 0x32 /* '2' */
  1577. 00001086  6708                     beq        +0xA /* 00001090 */
  1578. 00001088  5580                     subq.l     D0, 2
  1579. 0000108A  6704                     beq        +0x6 /* 00001090 */
  1580. 0000108C  6000 009A                bra        +0x9C /* 00001128 */
  1581. label00001090:
  1582. 00001090  49EF 001C                lea.l      A4, [A7 + 0x1C]
  1583. 00001094  3F04                     move.w     -[A7], D4
  1584. 00001096  4EBA F366                jsr        [PC - 0xC9A /* 000003FE */]
  1585. 0000109A  48C0                     ext.l      D0
  1586. 0000109C  5280                     addq.l     D0, 1
  1587. 0000109E  3F40 0032                move.w     [A7 + 0x32], D0
  1588. 000010A2  48C0                     ext.l      D0
  1589. 000010A4  5380                     subq.l     D0, 1
  1590. 000010A6  7201                     moveq.l    D1, 0x01
  1591. 000010A8  E1A9                     lsl        D1, D0
  1592. 000010AA  3F41 0032                move.w     [A7 + 0x32], D1
  1593. 000010AE  486B 0036                pea.l      [A3 + 0x36]
  1594. 000010B2  4EAD B3E8                jsr        [A5 - 0x4C18]
  1595. 000010B6  3600                     move.w     D3, D0
  1596. 000010B8  3003                     move.w     D0, D3
  1597. 000010BA  48C0                     ext.l      D0
  1598. 000010BC  322F 0036                move.w     D1, [A7 + 0x36]
  1599. 000010C0  48C1                     ext.l      D1
  1600. 000010C2  4C40 1801                movem.l    D0,A3,A4, D0
  1601. 000010C6  3F41 0036                move.w     [A7 + 0x36], D1
  1602. 000010CA  0C41 0001                cmpi.w     D1, 0x1
  1603. 000010CE  5C4F                     addq.w     A7, 6
  1604. 000010D0  6F56                     ble        +0x58 /* 00001128 */
  1605. 000010D2  3001                     move.w     D0, D1
  1606. 000010D4  48C0                     ext.l      D0
  1607. 000010D6  5380                     subq.l     D0, 1
  1608. 000010D8  3F40 0030                move.w     [A7 + 0x30], D0
  1609. 000010DC  48C0                     ext.l      D0
  1610. 000010DE  4680                     not.l      D0
  1611. 000010E0  3F40 0032                move.w     [A7 + 0x32], D0
  1612. 000010E4  48C0                     ext.l      D0
  1613. 000010E6  322C 0002                move.w     D1, [A4 + 0x2]
  1614. 000010EA  48C1                     ext.l      D1
  1615. 000010EC  C280                     and.l      D1, D0
  1616. 000010EE  3941 0002                move.w     [A4 + 0x2], D1
  1617. 000010F2  302C 0002                move.w     D0, [A4 + 0x2]
  1618. 000010F6  48C0                     ext.l      D0
  1619. 000010F8  322C 0006                move.w     D1, [A4 + 0x6]
  1620. 000010FC  48C1                     ext.l      D1
  1621. 000010FE  9280                     sub.l      D1, D0
  1622. 00001100  3F41 002E                move.w     [A7 + 0x2E], D1
  1623. 00001104  302F 0030                move.w     D0, [A7 + 0x30]
  1624. 00001108  48C0                     ext.l      D0
  1625. 0000110A  48C1                     ext.l      D1
  1626. 0000110C  D280                     add.l      D1, D0
  1627. 0000110E  302F 0032                move.w     D0, [A7 + 0x32]
  1628. 00001112  48C0                     ext.l      D0
  1629. 00001114  C081                     and.l      D0, D1
  1630. 00001116  3F40 002E                move.w     [A7 + 0x2E], D0
  1631. 0000111A  48C0                     ext.l      D0
  1632. 0000111C  322C 0002                move.w     D1, [A4 + 0x2]
  1633. 00001120  48C1                     ext.l      D1
  1634. 00001122  D280                     add.l      D1, D0
  1635. 00001124  3941 0006                move.w     [A4 + 0x6], D1
  1636. label00001128:
  1637. 00001128  2F12                     move.l     -[A7], [A2]
  1638. 0000112A  486F 0020                pea.l      [A7 + 0x20]
  1639. 0000112E  A8DF                     syscall    RectRgn
  1640. 00001130  7000                     moveq.l    D0, 0x00
  1641. 00001132  1006                     move.b     D0, D6
  1642. 00001134  0480 0000 0017           subi.l     D0, 0x17
  1643. 0000113A  6714                     beq        +0x16 /* 00001150 */
  1644. 0000113C  0480 0000 001B           subi.l     D0, 0x1B
  1645. 00001142  670C                     beq        +0xE /* 00001150 */
  1646. 00001144  5380                     subq.l     D0, 1
  1647. 00001146  6708                     beq        +0xA /* 00001150 */
  1648. 00001148  5380                     subq.l     D0, 1
  1649. 0000114A  6704                     beq        +0x6 /* 00001150 */
  1650. 0000114C  6000 00A4                bra        +0xA6 /* 000011F2 */
  1651. label00001150:
  1652. 00001150  594F                     subq.w     A7, 4
  1653. 00001152  A8D8                     syscall    NewRgn
  1654. 00001154  205F                     movea.l    A0, [A7]+
  1655. 00001156  2848                     movea.l    A4, A0
  1656. 00001158  4EAD D7A0                jsr        [A5 - 0x2860]
  1657. 0000115C  2F28 0018                move.l     -[A7], [A0 + 0x18]
  1658. 00001160  2F12                     move.l     -[A7], [A2]
  1659. 00001162  2F0C                     move.l     -[A7], A4
  1660. 00001164  A8E4                     syscall    SectRgn
  1661. 00001166  554F                     subq.w     A7, 2
  1662. 00001168  2F12                     move.l     -[A7], [A2]
  1663. 0000116A  2F0C                     move.l     -[A7], A4
  1664. 0000116C  A8E3                     syscall    EqualRgn
  1665. 0000116E  101F                     move.b     D0, [A7]+
  1666. 00001170  667C                     bne        +0x7E /* 000011EE */
  1667. 00001172  2F12                     move.l     -[A7], [A2]
  1668. 00001174  2F0C                     move.l     -[A7], A4
  1669. 00001176  2F0C                     move.l     -[A7], A4
  1670. 00001178  A8E7                     syscall    XorRgn
  1671. 0000117A  4A2D 20A8                tst.b      [A5 + 0x20A8]
  1672. 0000117E  6758                     beq        +0x5A /* 000011D8 */
  1673. 00001180  486B 0036                pea.l      [A3 + 0x36]
  1674. 00001184  4EAD B3F8                jsr        [A5 - 0x4C08]
  1675. 00001188  2608                     move.l     D3, A0
  1676. 0000118A  206B 002A                movea.l    A0, [A3 + 0x2A]
  1677. 0000118E  A069                     syscall    HGetState
  1678. 00001190  49C0                     lea.l      A4, D0
  1679. 00001192  1F40 0049                move.b     [A7 + 0x49], D0
  1680. 00001196  2043                     movea.l    A0, D3
  1681. 00001198  A069                     syscall    HGetState
  1682. 0000119A  49C0                     lea.l      A4, D0
  1683. 0000119C  1F40 0048                move.b     [A7 + 0x48], D0
  1684. 000011A0  2043                     movea.l    A0, D3
  1685. 000011A2  A029                     syscall    HLock
  1686. 000011A4  206B 002A                movea.l    A0, [A3 + 0x2A]
  1687. 000011A8  A029                     syscall    HLock
  1688. 000011AA  206B 002A                movea.l    A0, [A3 + 0x2A]
  1689. 000011AE  2F10                     move.l     -[A7], [A0]
  1690. 000011B0  2043                     movea.l    A0, D3
  1691. 000011B2  2F10                     move.l     -[A7], [A0]
  1692. 000011B4  486F 0028                pea.l      [A7 + 0x28]
  1693. 000011B8  486F 002C                pea.l      [A7 + 0x2C]
  1694. 000011BC  4267                     clr.w      -[A7]
  1695. 000011BE  2F0C                     move.l     -[A7], A4
  1696. 000011C0  A8EC                     syscall    CopyBits
  1697. 000011C2  206B 002A                movea.l    A0, [A3 + 0x2A]
  1698. 000011C6  102F 0049                move.b     D0, [A7 + 0x49]
  1699. 000011CA  A06A                     syscall    HSetState
  1700. 000011CC  2043                     movea.l    A0, D3
  1701. 000011CE  102F 0048                move.b     D0, [A7 + 0x48]
  1702. 000011D2  A06A                     syscall    HSetState
  1703. 000011D4  584F                     addq.w     A7, 4
  1704. 000011D6  6016                     bra        +0x18 /* 000011EE */
  1705. label000011D8:
  1706. 000011D8  486B 001C                pea.l      [A3 + 0x1C]
  1707. 000011DC  486B 004C                pea.l      [A3 + 0x4C]
  1708. 000011E0  486F 0024                pea.l      [A7 + 0x24]
  1709. 000011E4  486F 0028                pea.l      [A7 + 0x28]
  1710. 000011E8  4267                     clr.w      -[A7]
  1711. 000011EA  2F0C                     move.l     -[A7], A4
  1712. 000011EC  A8EC                     syscall    CopyBits
  1713. label000011EE:
  1714. 000011EE  2F0C                     move.l     -[A7], A4
  1715. 000011F0  A8D9                     syscall    DisposRgn/DisposeRgn
  1716. label000011F2:
  1717. 000011F2  49EF 001C                lea.l      A4, [A7 + 0x1C]
  1718. 000011F6  302C 0002                move.w     D0, [A4 + 0x2]
  1719. 000011FA  48C0                     ext.l      D0
  1720. 000011FC  322C 0006                move.w     D1, [A4 + 0x6]
  1721. 00001200  48C1                     ext.l      D1
  1722. 00001202  9280                     sub.l      D1, D0
  1723. 00001204  3F41 002E                move.w     [A7 + 0x2E], D1
  1724. 00001208  3014                     move.w     D0, [A4]
  1725. 0000120A  48C0                     ext.l      D0
  1726. 0000120C  322C 0004                move.w     D1, [A4 + 0x4]
  1727. 00001210  48C1                     ext.l      D1
  1728. 00001212  9280                     sub.l      D1, D0
  1729. 00001214  3F41 002C                move.w     [A7 + 0x2C], D1
  1730. 00001218  302C 0002                move.w     D0, [A4 + 0x2]
  1731. 0000121C  48C0                     ext.l      D0
  1732. 0000121E  322C 0006                move.w     D1, [A4 + 0x6]
  1733. 00001222  48C1                     ext.l      D1
  1734. 00001224  D280                     add.l      D1, D0
  1735. 00001226  2001                     move.l     D0, D1
  1736. 00001228  E088                     lsr        D0, 8
  1737. 0000122A  E088                     lsr        D0, 8
  1738. 0000122C  E088                     lsr        D0, 8
  1739. 0000122E  EE88                     lsr        D0, 7
  1740. 00001230  D081                     add.l      D0, D1
  1741. 00001232  E280                     asr        D0, 1
  1742. 00001234  3F40 0032                move.w     [A7 + 0x32], D0
  1743. 00001238  3014                     move.w     D0, [A4]
  1744. 0000123A  48C0                     ext.l      D0
  1745. 0000123C  322C 0004                move.w     D1, [A4 + 0x4]
  1746. 00001240  48C1                     ext.l      D1
  1747. 00001242  D280                     add.l      D1, D0
  1748. 00001244  2001                     move.l     D0, D1
  1749. 00001246  E088                     lsr        D0, 8
  1750. 00001248  E088                     lsr        D0, 8
  1751. 0000124A  E088                     lsr        D0, 8
  1752. 0000124C  EE88                     lsr        D0, 7
  1753. 0000124E  D081                     add.l      D0, D1
  1754. 00001250  E280                     asr        D0, 1
  1755. 00001252  3F40 0030                move.w     [A7 + 0x30], D0
  1756. 00001256  7000                     moveq.l    D0, 0x00
  1757. 00001258  1006                     move.b     D0, D6
  1758. 0000125A  0480 0000 0025           subi.l     D0, 0x25 /* '%' */
  1759. 00001260  0C80 0000 000C           cmpi.l     D0, 0xC
  1760. 00001266  6200 0164                bhi        +0x166 /* 000013CC */
  1761. 0000126A  5540                     subq.w     D0, 2
  1762. 0000126C  6D18                     blt        +0x1A /* 00001286 */
  1763. 0000126E  5540                     subq.w     D0, 2
  1764. 00001270  6D00 00F4                blt        +0xF6 /* 00001366 */
  1765. 00001274  5940                     subq.w     D0, 4
  1766. 00001276  6D00 0122                blt        +0x124 /* 0000139A */
  1767. 0000127A  5540                     subq.w     D0, 2
  1768. 0000127C  6D00 00E8                blt        +0xEA /* 00001366 */
  1769. 00001280  5540                     subq.w     D0, 2
  1770. 00001282  6D00 0148                blt        +0x14A /* 000013CC */
  1771. label00001286:
  1772. 00001286  3F7C 0010 0040           move.w     [A7 + 0x40], 0x10
  1773. 0000128C  0C06 0031                cmpi.b     D6, 0x31 /* '1' */
  1774. 00001290  6606                     bne        +0x8 /* 00001298 */
  1775. 00001292  3F7C 000C 0040           move.w     [A7 + 0x40], 0xC
  1776. label00001298:
  1777. 00001298  3E2F 0040                move.w     D7, [A7 + 0x40]
  1778. 0000129C  48C7                     ext.l      D7
  1779. 0000129E  3F3C 0001                move.w     -[A7], 0x1
  1780. 000012A2  302F 0030                move.w     D0, [A7 + 0x30]
  1781. 000012A6  48C0                     ext.l      D0
  1782. 000012A8  D087                     add.l      D0, D7
  1783. 000012AA  5380                     subq.l     D0, 1
  1784. 000012AC  4C47 0800                movem.l    A3, D7
  1785. 000012B0  3F00                     move.w     -[A7], D0
  1786. 000012B2  4EBA F09E                jsr        [PC - 0xF62 /* 00000352 */]
  1787. 000012B6  3F40 0032                move.w     [A7 + 0x32], D0
  1788. 000012BA  0C06 0025                cmpi.b     D6, 0x25 /* '%' */
  1789. 000012BE  584F                     addq.w     A7, 4
  1790. 000012C0  6608                     bne        +0xA /* 000012CA */
  1791. 000012C2  3F7C 000C 0042           move.w     [A7 + 0x42], 0xC
  1792. 000012C8  6020                     bra        +0x22 /* 000012EA */
  1793. label000012CA:
  1794. 000012CA  302F 002E                move.w     D0, [A7 + 0x2E]
  1795. 000012CE  48C0                     ext.l      D0
  1796. 000012D0  2F40 0018                move.l     [A7 + 0x18], D0
  1797. 000012D4  302F 002C                move.w     D0, [A7 + 0x2C]
  1798. 000012D8  48C0                     ext.l      D0
  1799. 000012DA  D0AF 0018                add.l      D0, [A7 + 0x18]
  1800. 000012DE  5380                     subq.l     D0, 1
  1801. 000012E0  4C6F 0800 0018           movem.l    A3, [A7 + 0x18]
  1802. 000012E6  3F40 0042                move.w     [A7 + 0x42], D0
  1803. label000012EA:
  1804. 000012EA  302F 0042                move.w     D0, [A7 + 0x42]
  1805. 000012EE  48C0                     ext.l      D0
  1806. 000012F0  2F40 0014                move.l     [A7 + 0x14], D0
  1807. 000012F4  3F3C 0001                move.w     -[A7], 0x1
  1808. 000012F8  302F 002E                move.w     D0, [A7 + 0x2E]
  1809. 000012FC  48C0                     ext.l      D0
  1810. 000012FE  D0AF 0016                add.l      D0, [A7 + 0x16]
  1811. 00001302  5380                     subq.l     D0, 1
  1812. 00001304  4C6F 0800 0016           movem.l    A3, [A7 + 0x16]
  1813. 0000130A  3F00                     move.w     -[A7], D0
  1814. 0000130C  4EBA F044                jsr        [PC - 0xFBC /* 00000352 */]
  1815. 00001310  3F40 0030                move.w     [A7 + 0x30], D0
  1816. 00001314  584F                     addq.w     A7, 4
  1817. label00001316:
  1818. 00001316  3F3C 0001                move.w     -[A7], 0x1
  1819. 0000131A  3004                     move.w     D0, D4
  1820. 0000131C  48C0                     ext.l      D0
  1821. 0000131E  322F 002E                move.w     D1, [A7 + 0x2E]
  1822. 00001322  48C1                     ext.l      D1
  1823. 00001324  4C40 1801                movem.l    D0,A3,A4, D0
  1824. 00001328  3F01                     move.w     -[A7], D1
  1825. 0000132A  4EBA F026                jsr        [PC - 0xFDA /* 00000352 */]
  1826. 0000132E  3600                     move.w     D3, D0
  1827. 00001330  3F3C 0001                move.w     -[A7], 0x1
  1828. 00001334  3004                     move.w     D0, D4
  1829. 00001336  48C0                     ext.l      D0
  1830. 00001338  322F 0034                move.w     D1, [A7 + 0x34]
  1831. 0000133C  48C1                     ext.l      D1
  1832. 0000133E  4C40 1801                movem.l    D0,A3,A4, D0
  1833. 00001342  3F01                     move.w     -[A7], D1
  1834. 00001344  4EBA F00C                jsr        [PC - 0xFF4 /* 00000352 */]
  1835. 00001348  3A00                     move.w     D5, D0
  1836. 0000134A  0C43 0001                cmpi.w     D3, 0x1
  1837. 0000134E  504F                     addq.w     A7, 8
  1838. 00001350  670C                     beq        +0xE /* 0000135E */
  1839. 00001352  0C45 0001                cmpi.w     D5, 0x1
  1840. 00001356  6674                     bne        +0x76 /* 000013CC */
  1841. 00001358  0C44 0001                cmpi.w     D4, 0x1
  1842. 0000135C  6F6E                     ble        +0x70 /* 000013CC */
  1843. label0000135E:
  1844. 0000135E  5344                     subq.w     D4, 1
  1845. 00001360  1544 0011                move.b     [A2 + 0x11], D4
  1846. 00001364  60B0                     bra        -0x4E /* 00001316 */
  1847. label00001366:
  1848. 00001366  3F7C 0010 0040           move.w     [A7 + 0x40], 0x10
  1849. 0000136C  302F 0040                move.w     D0, [A7 + 0x40]
  1850. 00001370  48C0                     ext.l      D0
  1851. 00001372  2F40 0010                move.l     [A7 + 0x10], D0
  1852. 00001376  3F3C 0001                move.w     -[A7], 0x1
  1853. 0000137A  302F 0030                move.w     D0, [A7 + 0x30]
  1854. 0000137E  48C0                     ext.l      D0
  1855. 00001380  D0AF 0012                add.l      D0, [A7 + 0x12]
  1856. 00001384  5380                     subq.l     D0, 1
  1857. 00001386  4C6F 0800 0012           movem.l    A3, [A7 + 0x12]
  1858. 0000138C  3F00                     move.w     -[A7], D0
  1859. 0000138E  4EBA EFC2                jsr        [PC - 0x103E /* 00000352 */]
  1860. 00001392  3F40 0032                move.w     [A7 + 0x32], D0
  1861. 00001396  584F                     addq.w     A7, 4
  1862. 00001398  6032                     bra        +0x34 /* 000013CC */
  1863. label0000139A:
  1864. 0000139A  3F7C 0010 0042           move.w     [A7 + 0x42], 0x10
  1865. 000013A0  302F 0042                move.w     D0, [A7 + 0x42]
  1866. 000013A4  48C0                     ext.l      D0
  1867. 000013A6  2F40 000C                move.l     [A7 + 0xC], D0
  1868. 000013AA  3F3C 0001                move.w     -[A7], 0x1
  1869. 000013AE  302F 002E                move.w     D0, [A7 + 0x2E]
  1870. 000013B2  48C0                     ext.l      D0
  1871. 000013B4  D0AF 000E                add.l      D0, [A7 + 0xE]
  1872. 000013B8  5380                     subq.l     D0, 1
  1873. 000013BA  4C6F 0800 000E           movem.l    A3, [A7 + 0xE]
  1874. 000013C0  3F00                     move.w     -[A7], D0
  1875. 000013C2  4EBA EF8E                jsr        [PC - 0x1072 /* 00000352 */]
  1876. 000013C6  3F40 0030                move.w     [A7 + 0x30], D0
  1877. 000013CA  584F                     addq.w     A7, 4
  1878. label000013CC:
  1879. 000013CC  3F3C 0001                move.w     -[A7], 0x1
  1880. 000013D0  3004                     move.w     D0, D4
  1881. 000013D2  48C0                     ext.l      D0
  1882. 000013D4  322F 002E                move.w     D1, [A7 + 0x2E]
  1883. 000013D8  48C1                     ext.l      D1
  1884. 000013DA  4C40 1801                movem.l    D0,A3,A4, D0
  1885. 000013DE  3F01                     move.w     -[A7], D1
  1886. 000013E0  4EBA EF70                jsr        [PC - 0x1090 /* 00000352 */]
  1887. 000013E4  3F40 0042                move.w     [A7 + 0x42], D0
  1888. 000013E8  3F3C 0001                move.w     -[A7], 0x1
  1889. 000013EC  3004                     move.w     D0, D4
  1890. 000013EE  48C0                     ext.l      D0
  1891. 000013F0  322F 0034                move.w     D1, [A7 + 0x34]
  1892. 000013F4  48C1                     ext.l      D1
  1893. 000013F6  4C40 1801                movem.l    D0,A3,A4, D0
  1894. 000013FA  3F01                     move.w     -[A7], D1
  1895. 000013FC  4EBA EF54                jsr        [PC - 0x10AC /* 00000352 */]
  1896. 00001400  3F40 0044                move.w     [A7 + 0x44], D0
  1897. 00001404  356F 0046 000C           move.w     [A2 + 0xC], [A7 + 0x46]
  1898. 0000140A  7000                     moveq.l    D0, 0x00
  1899. 0000140C  1006                     move.b     D0, D6
  1900. 0000140E  504F                     addq.w     A7, 8
  1901. 00001410  0C80 0000 0030           cmpi.l     D0, 0x30 /* '0' */
  1902. 00001416  6200 00E4                bhi        +0xE6 /* 000014FC */
  1903. 0000141A  303B 0206                move.w     D0, [PC + D0.w * 2 + 0x6]
  1904. 0000141E  4EFB 0002                jmp        [PC + D0.w + 0x2]
  1905. 00001422  00DA                     .incomplete
  1906. 00001424  00C2                     .incomplete
  1907. 00001426  00C2                     .incomplete
  1908. 00001428  00DA                     .incomplete
  1909. 0000142A  00DA                     .incomplete
  1910. 0000142C  0062 0062                ori.w      -[A2], 0x62 /* 'b' */
  1911. 00001430  0078 0078 008E           ori.w      [0x0000008E], 0x78 /* 'x' */
  1912. 00001436  008E 00C2 00C2           ori.l      A6, 0xC200C2
  1913. 0000143C  00DA                     .incomplete
  1914. 0000143E  00DA                     .incomplete
  1915. 00001440  00DA                     .incomplete
  1916. 00001442  00CA                     .incomplete
  1917. 00001444  00C2                     .incomplete
  1918. 00001446  00CA                     .incomplete
  1919. 00001448  00DA                     .incomplete
  1920. 0000144A  00CA                     .incomplete
  1921. 0000144C  00C2                     .incomplete
  1922. 0000144E  00CA                     .incomplete
  1923. 00001450  00DA                     .incomplete
  1924. 00001452  00CA                     .incomplete
  1925. 00001454  00DA                     .incomplete
  1926. 00001456  00DA                     .incomplete
  1927. 00001458  00DA                     .incomplete
  1928. 0000145A  00C2                     .incomplete
  1929. 0000145C  00DA                     .incomplete
  1930. 0000145E  00CA                     .incomplete
  1931. 00001460  00CA                     .incomplete
  1932. 00001462  00C2                     .incomplete
  1933. 00001464  00C2                     .incomplete
  1934. 00001466  00DA                     .incomplete
  1935. 00001468  00CA                     .incomplete
  1936. 0000146A  00CA                     .incomplete
  1937. 0000146C  00DA                     .incomplete
  1938. 0000146E  00DA                     .incomplete
  1939. 00001470  00DA                     .incomplete
  1940. 00001472  00DA                     .incomplete
  1941. 00001474  00C2                     .incomplete
  1942. 00001476  00C2                     .incomplete
  1943. 00001478  00C2                     .incomplete
  1944. 0000147A  00C2                     .incomplete
  1945. 0000147C  00DA                     .incomplete
  1946. 0000147E  00DA                     .incomplete
  1947. 00001480  008E 008E 3004           ori.l      A6, 0x8E3004
  1948. 00001486  48C0                     ext.l      D0
  1949. 00001488  D080                     add.l      D0, D0
  1950. 0000148A  322F 002E                move.w     D1, [A7 + 0x2E]
  1951. 0000148E  48C1                     ext.l      D1
  1952. 00001490  4C40 1801                movem.l    D0,A3,A4, D0
  1953. 00001494  3541 000C                move.w     [A2 + 0xC], D1
  1954. 00001498  6062                     bra        +0x64 /* 000014FC */
  1955. 0000149A  3004                     move.w     D0, D4
  1956. 0000149C  48C0                     ext.l      D0
  1957. 0000149E  D080                     add.l      D0, D0
  1958. 000014A0  322F 002C                move.w     D1, [A7 + 0x2C]
  1959. 000014A4  48C1                     ext.l      D1
  1960. 000014A6  4C40 1801                movem.l    D0,A3,A4, D0
  1961. 000014AA  3541 000C                move.w     [A2 + 0xC], D1
  1962. 000014AE  604C                     bra        +0x4E /* 000014FC */
  1963. 000014B0  3004                     move.w     D0, D4
  1964. 000014B2  48C0                     ext.l      D0
  1965. 000014B4  D080                     add.l      D0, D0
  1966. 000014B6  2E80                     move.l     [A7], D0
  1967. 000014B8  3F2F 002E                move.w     -[A7], [A7 + 0x2E]
  1968. 000014BC  3F2F 002E                move.w     -[A7], [A7 + 0x2E]
  1969. 000014C0  4EBA EE90                jsr        [PC - 0x1170 /* 00000352 */]
  1970. 000014C4  48C0                     ext.l      D0
  1971. 000014C6  322F 0032                move.w     D1, [A7 + 0x32]
  1972. 000014CA  48C1                     ext.l      D1
  1973. 000014CC  342F 0030                move.w     D2, [A7 + 0x30]
  1974. 000014D0  48C2                     ext.l      D2
  1975. 000014D2  D481                     add.l      D2, D1
  1976. 000014D4  9480                     sub.l      D2, D0
  1977. 000014D6  4C6F 2802 0004           movem.l    D1,A3,A5, [A7 + 0x4]
  1978. 000014DC  3542 000C                move.w     [A2 + 0xC], D2
  1979. 000014E0  584F                     addq.w     A7, 4
  1980. 000014E2  6018                     bra        +0x1A /* 000014FC */
  1981. 000014E4  356F 003C 000C           move.w     [A2 + 0xC], [A7 + 0x3C]
  1982. 000014EA  6010                     bra        +0x12 /* 000014FC */
  1983. 000014EC  302F 003C                move.w     D0, [A7 + 0x3C]
  1984. 000014F0  B06F 003E                cmp.w      D0, [A7 + 0x3E]
  1985. 000014F4  6C06                     bge        +0x8 /* 000014FC */
  1986. 000014F6  356F 003C 000C           move.w     [A2 + 0xC], [A7 + 0x3C]
  1987. label000014FC:
  1988. 000014FC  4A6A 000C                tst.w      [A2 + 0xC]
  1989. 00001500  6E06                     bgt        +0x8 /* 00001508 */
  1990. 00001502  357C 0001 000C           move.w     [A2 + 0xC], 0x1
  1991. label00001508:
  1992. 00001508  7000                     moveq.l    D0, 0x00
  1993. 0000150A  1006                     move.b     D0, D6
  1994. 0000150C  5B80                     subq.l     D0, 5
  1995. 0000150E  0C80 0000 002B           cmpi.l     D0, 0x2B /* '+' */
  1996. 00001514  6214                     bhi        +0x16 /* 0000152A */
  1997. 00001516  5D40                     subq.w     D0, 6
  1998. 00001518  6D06                     blt        +0x8 /* 00001520 */
  1999. 0000151A  0440 0024                subi.w     D0, 0x24 /* '$' */
  2000. 0000151E  6D0A                     blt        +0xC /* 0000152A */
  2001. label00001520:
  2002. 00001520  362A 000C                move.w     D3, [A2 + 0xC]
  2003. 00001524  48C3                     ext.l      D3
  2004. 00001526  D683                     add.l      D3, D3
  2005. 00001528  6004                     bra        +0x6 /* 0000152E */
  2006. label0000152A:
  2007. 0000152A  362A 000C                move.w     D3, [A2 + 0xC]
  2008. label0000152E:
  2009. 0000152E  7000                     moveq.l    D0, 0x00
  2010. 00001530  1006                     move.b     D0, D6
  2011. 00001532  0480 0000 0026           subi.l     D0, 0x26 /* '&' */
  2012. 00001538  0C80 0000 0008           cmpi.l     D0, 0x8
  2013. 0000153E  620C                     bhi        +0xE /* 0000154C */
  2014. 00001540  302A 000C                move.w     D0, [A2 + 0xC]
  2015. 00001544  48C0                     ext.l      D0
  2016. 00001546  D080                     add.l      D0, D0
  2017. 00001548  3540 000C                move.w     [A2 + 0xC], D0
  2018. label0000154C:
  2019. 0000154C  3F3C 0001                move.w     -[A7], 0x1
  2020. 00001550  3003                     move.w     D0, D3
  2021. 00001552  48C0                     ext.l      D0
  2022. 00001554  322F 002E                move.w     D1, [A7 + 0x2E]
  2023. 00001558  48C1                     ext.l      D1
  2024. 0000155A  4C40 1801                movem.l    D0,A3,A4, D0
  2025. 0000155E  3F01                     move.w     -[A7], D1
  2026. 00001560  4EBA EDF0                jsr        [PC - 0x1210 /* 00000352 */]
  2027. 00001564  3F40 003A                move.w     [A7 + 0x3A], D0
  2028. 00001568  3F3C 0001                move.w     -[A7], 0x1
  2029. 0000156C  3003                     move.w     D0, D3
  2030. 0000156E  48C0                     ext.l      D0
  2031. 00001570  322F 0034                move.w     D1, [A7 + 0x34]
  2032. 00001574  48C1                     ext.l      D1
  2033. 00001576  4C40 1801                movem.l    D0,A3,A4, D0
  2034. 0000157A  3F01                     move.w     -[A7], D1
  2035. 0000157C  4EBA EDD4                jsr        [PC - 0x122C /* 00000352 */]
  2036. 00001580  3F40 003C                move.w     [A7 + 0x3C], D0
  2037. 00001584  7000                     moveq.l    D0, 0x00
  2038. 00001586  1006                     move.b     D0, D6
  2039. 00001588  504F                     addq.w     A7, 8
  2040. 0000158A  5B80                     subq.l     D0, 5
  2041. 0000158C  0C80 0000 002B           cmpi.l     D0, 0x2B /* '+' */
  2042. 00001592  625E                     bhi        +0x60 /* 000015F2 */
  2043. 00001594  5D40                     subq.w     D0, 6
  2044. 00001596  6D06                     blt        +0x8 /* 0000159E */
  2045. 00001598  0440 0024                subi.w     D0, 0x24 /* '$' */
  2046. 0000159C  6D54                     blt        +0x56 /* 000015F2 */
  2047. label0000159E:
  2048. 0000159E  554F                     subq.w     A7, 2
  2049. 000015A0  302F 0038                move.w     D0, [A7 + 0x38]
  2050. 000015A4  C1C3                     muls.w     D0, D3
  2051. 000015A6  322F 002E                move.w     D1, [A7 + 0x2E]
  2052. 000015AA  48C1                     ext.l      D1
  2053. 000015AC  9280                     sub.l      D1, D0
  2054. 000015AE  3F01                     move.w     -[A7], D1
  2055. 000015B0  4EBA F982                jsr        [PC - 0x67E /* 00000F34 */]
  2056. 000015B4  301F                     move.w     D0, [A7]+
  2057. 000015B6  3F40 003A                move.w     [A7 + 0x3A], D0
  2058. 000015BA  554F                     subq.w     A7, 2
  2059. 000015BC  302F 0036                move.w     D0, [A7 + 0x36]
  2060. 000015C0  C1C3                     muls.w     D0, D3
  2061. 000015C2  322F 0030                move.w     D1, [A7 + 0x30]
  2062. 000015C6  48C1                     ext.l      D1
  2063. 000015C8  9280                     sub.l      D1, D0
  2064. 000015CA  3F01                     move.w     -[A7], D1
  2065. 000015CC  4EBA F966                jsr        [PC - 0x69A /* 00000F34 */]
  2066. 000015D0  301F                     move.w     D0, [A7]+
  2067. 000015D2  3F40 0038                move.w     [A7 + 0x38], D0
  2068. 000015D6  0C06 000A                cmpi.b     D6, 0xA /* '\n' */
  2069. 000015DA  664C                     bne        +0x4E /* 00001628 */
  2070. 000015DC  302F 003E                move.w     D0, [A7 + 0x3E]
  2071. 000015E0  B06F 003C                cmp.w      D0, [A7 + 0x3C]
  2072. 000015E4  6C06                     bge        +0x8 /* 000015EC */
  2073. 000015E6  426F 0038                clr.w      [A7 + 0x38]
  2074. 000015EA  603C                     bra        +0x3E /* 00001628 */
  2075. label000015EC:
  2076. 000015EC  426F 003A                clr.w      [A7 + 0x3A]
  2077. 000015F0  6036                     bra        +0x38 /* 00001628 */
  2078. label000015F2:
  2079. 000015F2  4267                     clr.w      -[A7]
  2080. 000015F4  302F 0038                move.w     D0, [A7 + 0x38]
  2081. 000015F8  C1C3                     muls.w     D0, D3
  2082. 000015FA  322F 002E                move.w     D1, [A7 + 0x2E]
  2083. 000015FE  48C1                     ext.l      D1
  2084. 00001600  9280                     sub.l      D1, D0
  2085. 00001602  3F01                     move.w     -[A7], D1
  2086. 00001604  4EBA ED4C                jsr        [PC - 0x12B4 /* 00000352 */]
  2087. 00001608  3F40 003E                move.w     [A7 + 0x3E], D0
  2088. 0000160C  4267                     clr.w      -[A7]
  2089. 0000160E  302F 003A                move.w     D0, [A7 + 0x3A]
  2090. 00001612  C1C3                     muls.w     D0, D3
  2091. 00001614  322F 0034                move.w     D1, [A7 + 0x34]
  2092. 00001618  48C1                     ext.l      D1
  2093. 0000161A  9280                     sub.l      D1, D0
  2094. 0000161C  3F01                     move.w     -[A7], D1
  2095. 0000161E  4EBA ED32                jsr        [PC - 0x12CE /* 00000352 */]
  2096. 00001622  3F40 0040                move.w     [A7 + 0x40], D0
  2097. 00001626  504F                     addq.w     A7, 8
  2098. label00001628:
  2099. 00001628  7000                     moveq.l    D0, 0x00
  2100. 0000162A  1006                     move.b     D0, D6
  2101. 0000162C  0480 0000 0027           subi.l     D0, 0x27 /* '\'' */
  2102. 00001632  0C80 0000 0007           cmpi.l     D0, 0x7
  2103. 00001638  6262                     bhi        +0x64 /* 0000169C */
  2104. 0000163A  5540                     subq.w     D0, 2
  2105. 0000163C  6D04                     blt        +0x6 /* 00001642 */
  2106. 0000163E  5940                     subq.w     D0, 4
  2107. 00001640  6D2E                     blt        +0x30 /* 00001670 */
  2108. label00001642:
  2109. 00001642  302F 0040                move.w     D0, [A7 + 0x40]
  2110. 00001646  48C0                     ext.l      D0
  2111. 00001648  2F40 0008                move.l     [A7 + 0x8], D0
  2112. 0000164C  3F3C 0001                move.w     -[A7], 0x1
  2113. 00001650  302F 002E                move.w     D0, [A7 + 0x2E]
  2114. 00001654  48C0                     ext.l      D0
  2115. 00001656  D0AF 000A                add.l      D0, [A7 + 0xA]
  2116. 0000165A  5380                     subq.l     D0, 1
  2117. 0000165C  4C6F 0800 000A           movem.l    A3, [A7 + 0xA]
  2118. 00001662  3F00                     move.w     -[A7], D0
  2119. 00001664  4EBA ECEC                jsr        [PC - 0x1314 /* 00000352 */]
  2120. 00001668  3F40 0030                move.w     [A7 + 0x30], D0
  2121. 0000166C  584F                     addq.w     A7, 4
  2122. 0000166E  602C                     bra        +0x2E /* 0000169C */
  2123. label00001670:
  2124. 00001670  302F 0042                move.w     D0, [A7 + 0x42]
  2125. 00001674  48C0                     ext.l      D0
  2126. 00001676  2F40 0004                move.l     [A7 + 0x4], D0
  2127. 0000167A  3F3C 0001                move.w     -[A7], 0x1
  2128. 0000167E  302F 0030                move.w     D0, [A7 + 0x30]
  2129. 00001682  48C0                     ext.l      D0
  2130. 00001684  D0AF 0006                add.l      D0, [A7 + 0x6]
  2131. 00001688  5380                     subq.l     D0, 1
  2132. 0000168A  4C6F 0800 0006           movem.l    A3, [A7 + 0x6]
  2133. 00001690  3F00                     move.w     -[A7], D0
  2134. 00001692  4EBA ECBE                jsr        [PC - 0x1342 /* 00000352 */]
  2135. 00001696  3F40 0032                move.w     [A7 + 0x32], D0
  2136. 0000169A  584F                     addq.w     A7, 4
  2137. label0000169C:
  2138. 0000169C  486F 0024                pea.l      [A7 + 0x24]
  2139. 000016A0  2F0E                     move.l     -[A7], A6
  2140. 000016A2  7000                     moveq.l    D0, 0x00
  2141. 000016A4  1006                     move.b     D0, D6
  2142. 000016A6  3F00                     move.w     -[A7], D0
  2143. 000016A8  4EBA ED84                jsr        [PC - 0x127C /* 0000042E */]
  2144. 000016AC  206F 0024                movea.l    A0, [A7 + 0x24]
  2145. 000016B0  3610                     move.w     D3, [A0]
  2146. 000016B2  2008                     move.l     D0, A0
  2147. 000016B4  5480                     addq.l     D0, 2
  2148. 000016B6  2F40 0024                move.l     [A7 + 0x24], D0
  2149. 000016BA  206B 0032                movea.l    A0, [A3 + 0x32]
  2150. 000016BE  A02A                     syscall    HUnlock
  2151. 000016C0  2F2B 0032                move.l     -[A7], [A3 + 0x32]
  2152. 000016C4  4EAD C268                jsr        [A5 - 0x3D98]
  2153. 000016C8  2A00                     move.l     D5, D0
  2154. 000016CA  3003                     move.w     D0, D3
  2155. 000016CC  48C0                     ext.l      D0
  2156. 000016CE  EB88                     lsl        D0, 5
  2157. 000016D0  D085                     add.l      D0, D5
  2158. 000016D2  2F00                     move.l     -[A7], D0
  2159. 000016D4  486B 0032                pea.l      [A3 + 0x32]
  2160. 000016D8  4EAD C270                jsr        [A5 - 0x3D90]
  2161. 000016DC  206B 0032                movea.l    A0, [A3 + 0x32]
  2162. 000016E0  A029                     syscall    HLock
  2163. 000016E2  206B 0032                movea.l    A0, [A3 + 0x32]
  2164. 000016E6  2450                     movea.l    A2, [A0]
  2165. 000016E8  3003                     move.w     D0, D3
  2166. 000016EA  48C0                     ext.l      D0
  2167. 000016EC  5380                     subq.l     D0, 1
  2168. 000016EE  3540 000E                move.w     [A2 + 0xE], D0
  2169. 000016F2  7600                     moveq.l    D3, 0x00
  2170. 000016F4  4FEF 000C                lea.l      A7, [A7 + 0xC]
  2171. 000016F8  6032                     bra        +0x34 /* 0000172C */
  2172. label000016FA:
  2173. 000016FA  206F 0024                movea.l    A0, [A7 + 0x24]
  2174. 000016FE  2A10                     move.l     D5, [A0]
  2175. 00001700  2008                     move.l     D0, A0
  2176. 00001702  5880                     addq.l     D0, 4
  2177. 00001704  2F40 0024                move.l     [A7 + 0x24], D0
  2178. 00001708  3043                     movea.w    A0, D3
  2179. 0000170A  2008                     move.l     D0, A0
  2180. 0000170C  EB88                     lsl        D0, 5
  2181. 0000170E  204A                     movea.l    A0, A2
  2182. 00001710  D1C0                     add.l      A0, D0
  2183. 00001712  4868 0012                pea.l      [A0 + 0x12]
  2184. 00001716  2F05                     move.l     -[A7], D5
  2185. 00001718  486F 0024                pea.l      [A7 + 0x24]
  2186. 0000171C  486A 000C                pea.l      [A2 + 0xC]
  2187. 00001720  3F04                     move.w     -[A7], D4
  2188. 00001722  486F 003A                pea.l      [A7 + 0x3A]
  2189. 00001726  4EBA F3EA                jsr        [PC - 0xC16 /* 00000B12 */]
  2190. 0000172A  5243                     addq.w     D3, 1
  2191. label0000172C:
  2192. 0000172C  B66A 000E                cmp.w      D3, [A2 + 0xE]
  2193. 00001730  6FC8                     ble        -0x36 /* 000016FA */
  2194. 00001732  7000                     moveq.l    D0, 0x00
  2195. 00001734  1006                     move.b     D0, D6
  2196. 00001736  0480 0000 002F           subi.l     D0, 0x2F /* '/' */
  2197. 0000173C  6706                     beq        +0x8 /* 00001744 */
  2198. 0000173E  5380                     subq.l     D0, 1
  2199. 00001740  6702                     beq        +0x4 /* 00001744 */
  2200. 00001742  601A                     bra        +0x1C /* 0000175E */
  2201. label00001744:
  2202. 00001744  302A 000C                move.w     D0, [A2 + 0xC]
  2203. 00001748  48C0                     ext.l      D0
  2204. 0000174A  5680                     addq.l     D0, 3
  2205. 0000174C  3540 000C                move.w     [A2 + 0xC], D0
  2206. 00001750  0C6A 0006 000C           cmpi.w     [A2 + 0xC], 0x6
  2207. 00001756  6C06                     bge        +0x8 /* 0000175E */
  2208. 00001758  357C 0006 000C           move.w     [A2 + 0xC], 0x6
  2209. label0000175E:
  2210. 0000175E  362A 000C                move.w     D3, [A2 + 0xC]
  2211. 00001762  204E                     movea.l    A0, A6
  2212. 00001764  A02A                     syscall    HUnlock
  2213. label00001766:
  2214. 00001766  3F43 0072                move.w     [A7 + 0x72], D3
  2215. 0000176A  4FEF 0046                lea.l      A7, [A7 + 0x46]
  2216. 0000176E  4CDF 5CF8                movem.l    D3,D4,D5,D6,D7,A2,A3,A4,A6, [A7]+
  2217. 00001772  4E74 0004                rtd        0x0004
  2218. 00001776  48E7 1F3A                movem.l    -[A7], D3,D4,D5,D6,D7,A2,A3,A4,A6
  2219. 0000177A  4FEF FFB4                lea.l      A7, [A7 - 0x4C]
  2220. 0000177E  266F 0074                movea.l    A3, [A7 + 0x74]
  2221. 00001782  4AAB 0032                tst.l      [A3 + 0x32]
  2222. 00001786  660A                     bne        +0xC /* 00001792 */
  2223. 00001788  1F7C 0001 0009           move.b     [A7 + 0x9], 0x1
  2224. 0000178E  6000 06DE                bra        +0x6E0 /* 00001E6E */
  2225. label00001792:
  2226. 00001792  206B 0032                movea.l    A0, [A3 + 0x32]
  2227. 00001796  A029                     syscall    HLock
  2228. 00001798  206B 0032                movea.l    A0, [A3 + 0x32]
  2229. 0000179C  2850                     movea.l    A4, [A0]
  2230. 0000179E  7000                     moveq.l    D0, 0x00
  2231. 000017A0  102C 0011                move.b     D0, [A4 + 0x11]
  2232. 000017A4  3F40 0006                move.w     [A7 + 0x6], D0
  2233. 000017A8  162C 0010                move.b     D3, [A4 + 0x10]
  2234. 000017AC  1F43 0009                move.b     [A7 + 0x9], D3
  2235. 000017B0  4A03                     tst.b      D3
  2236. 000017B2  6600 06BA                bne        +0x6BC /* 00001E6E */
  2237. 000017B6  202C 0004                move.l     D0, [A4 + 0x4]
  2238. 000017BA  5280                     addq.l     D0, 1
  2239. 000017BC  2940 0004                move.l     [A4 + 0x4], D0
  2240. 000017C0  302C 000C                move.w     D0, [A4 + 0xC]
  2241. 000017C4  48C0                     ext.l      D0
  2242. 000017C6  B0AC 0004                cmp.l      D0, [A4 + 0x4]
  2243. 000017CA  6E16                     bgt        +0x18 /* 000017E2 */
  2244. 000017CC  1F7C 0001 0009           move.b     [A7 + 0x9], 0x1
  2245. 000017D2  7601                     moveq.l    D3, 0x01
  2246. 000017D4  302C 000C                move.w     D0, [A4 + 0xC]
  2247. 000017D8  48C0                     ext.l      D0
  2248. 000017DA  B0AC 0004                cmp.l      D0, [A4 + 0x4]
  2249. 000017DE  6D00 068E                blt        +0x690 /* 00001E6E */
  2250. label000017E2:
  2251. 000017E2  426F 003A                clr.w      [A7 + 0x3A]
  2252. 000017E6  6000 0674                bra        +0x676 /* 00001E5C */
  2253. label000017EA:
  2254. 000017EA  346F 003A                movea.w    A2, [A7 + 0x3A]
  2255. 000017EE  200A                     move.l     D0, A2
  2256. 000017F0  EB88                     lsl        D0, 5
  2257. 000017F2  244C                     movea.l    A2, A4
  2258. 000017F4  D5C0                     add.l      A2, D0
  2259. 000017F6  45EA 0012                lea.l      A2, [A2 + 0x12]
  2260. 000017FA  2012                     move.l     D0, [A2]
  2261. 000017FC  0C80 0000 000A           cmpi.l     D0, 0xA /* '\n' */
  2262. 00001802  6200 05C8                bhi        +0x5CA /* 00001DCC */
  2263. 00001806  303B 0206                move.w     D0, [PC + D0.w * 2 + 0x6]
  2264. 0000180A  4EFB 0002                jmp        [PC + D0.w + 0x2]
  2265. 0000180E  064A 0084                addi.w     A2, 0x84
  2266. 00001812  0016 0084                ori.b      [A6], 0x84
  2267. 00001816  05BE                     bclr       <<invalid special address>>, D2
  2268. 00001818  00C8                     .incomplete
  2269. 0000181A  028C 043C 0364           andi.l     A4, 0x43C0364
  2270. 00001820  05BE                     bclr       <<invalid special address>>, D2
  2271. 00001822  0172 2C4A                bchg       [A2 + D2 * 4 + 0x4A], D0
  2272. 00001826  508E                     addq.l     A6, 8
  2273. 00001828  588E                     addq.l     A6, 4
  2274. 0000182A  4A6E 0002                tst.w      [A6 + 0x2]
  2275. 0000182E  6706                     beq        +0x8 /* 00001836 */
  2276. 00001830  382E 0002                move.w     D4, [A6 + 0x2]
  2277. 00001834  6004                     bra        +0x6 /* 0000183A */
  2278. label00001836:
  2279. 00001836  382E 0006                move.w     D4, [A6 + 0x6]
  2280. label0000183A:
  2281. 0000183A  4A56                     tst.w      [A6]
  2282. 0000183C  6704                     beq        +0x6 /* 00001842 */
  2283. 0000183E  3616                     move.w     D3, [A6]
  2284. 00001840  6004                     bra        +0x6 /* 00001846 */
  2285. label00001842:
  2286. 00001842  362E 0004                move.w     D3, [A6 + 0x4]
  2287. label00001846:
  2288. 00001846  594F                     subq.w     A7, 4
  2289. 00001848  A8D8                     syscall    NewRgn
  2290. 0000184A  205F                     movea.l    A0, [A7]+
  2291. 0000184C  2C48                     movea.l    A6, A0
  2292. 0000184E  594F                     subq.w     A7, 4
  2293. 00001850  3F3C A8D4                move.w     -[A7], 0xA8D4
  2294. 00001854  1F3C 0001                move.b     -[A7], 0x1
  2295. 00001858  4EAD 9D9C                jsr        [A5 - 0x6264]
  2296. 0000185C  205F                     movea.l    A0, [A7]+
  2297. 0000185E  2A08                     move.l     D5, A0
  2298. 00001860  2F2D 93DA                move.l     -[A7], [A5 - 0x6C26]
  2299. 00001864  3F3C A8D4                move.w     -[A7], 0xA8D4
  2300. 00001868  1F3C 0001                move.b     -[A7], 0x1
  2301. 0000186C  4EAD 9DA2                jsr        [A5 - 0x625E]
  2302. 00001870  486A 0004                pea.l      [A2 + 0x4]
  2303. 00001874  3F04                     move.w     -[A7], D4
  2304. 00001876  3F03                     move.w     -[A7], D3
  2305. 00001878  2F0E                     move.l     -[A7], A6
  2306. 0000187A  A8EF                     syscall    ScrollRect
  2307. 0000187C  2F05                     move.l     -[A7], D5
  2308. 0000187E  3F3C A8D4                move.w     -[A7], 0xA8D4
  2309. 00001882  1F3C 0001                move.b     -[A7], 0x1
  2310. 00001886  4EAD 9DA2                jsr        [A5 - 0x625E]
  2311. 0000188A  2F0E                     move.l     -[A7], A6
  2312. 0000188C  A8D9                     syscall    DisposRgn/DisposeRgn
  2313. 0000188E  6000 053C                bra        +0x53E /* 00001DCC */
  2314. 00001892  7003                     moveq.l    D0, 0x03
  2315. 00001894  B092                     cmp.l      D0, [A2]
  2316. 00001896  661C                     bne        +0x1E /* 000018B4 */
  2317. 00001898  302F 003A                move.w     D0, [A7 + 0x3A]
  2318. 0000189C  48C0                     ext.l      D0
  2319. 0000189E  5280                     addq.l     D0, 1
  2320. 000018A0  EB88                     lsl        D0, 5
  2321. 000018A2  204C                     movea.l    A0, A4
  2322. 000018A4  D1C0                     add.l      A0, D0
  2323. 000018A6  2F68 0016 002A           move.l     [A7 + 0x2A], [A0 + 0x16]
  2324. 000018AC  2F68 001A 002E           move.l     [A7 + 0x2E], [A0 + 0x1A]
  2325. 000018B2  600C                     bra        +0xE /* 000018C0 */
  2326. label000018B4:
  2327. 000018B4  2F6A 0004 002A           move.l     [A7 + 0x2A], [A2 + 0x4]
  2328. 000018BA  2F6A 0008 002E           move.l     [A7 + 0x2E], [A2 + 0x8]
  2329. label000018C0:
  2330. 000018C0  2F0B                     move.l     -[A7], A3
  2331. 000018C2  486F 002E                pea.l      [A7 + 0x2E]
  2332. 000018C6  486A 0004                pea.l      [A2 + 0x4]
  2333. 000018CA  4EBA EAB2                jsr        [PC - 0x154E /* 0000037E */]
  2334. 000018CE  4FEF 000C                lea.l      A7, [A7 + 0xC]
  2335. 000018D2  6000 04F8                bra        +0x4FA /* 00001DCC */
  2336. 000018D6  7800                     moveq.l    D4, 0x00
  2337. 000018D8  7001                     moveq.l    D0, 0x01
  2338. 000018DA  B0AC 0004                cmp.l      D0, [A4 + 0x4]
  2339. 000018DE  6614                     bne        +0x16 /* 000018F4 */
  2340. 000018E0  2F6C 0036 002A           move.l     [A7 + 0x2A], [A4 + 0x36]
  2341. 000018E6  2F6C 003A 002E           move.l     [A7 + 0x2E], [A4 + 0x3A]
  2342. 000018EC  296A 0004 003E           move.l     [A4 + 0x3E], [A2 + 0x4]
  2343. 000018F2  606A                     bra        +0x6C /* 0000195E */
  2344. label000018F4:
  2345. 000018F4  2A2C 003E                move.l     D5, [A4 + 0x3E]
  2346. 000018F8  594F                     subq.w     A7, 4
  2347. 000018FA  2F05                     move.l     -[A7], D5
  2348. 000018FC  2F2A 0004                move.l     -[A7], [A2 + 0x4]
  2349. 00001900  4EBA 0692                jsr        [PC + 0x692 /* 00001F94 */]
  2350. 00001904  201F                     move.l     D0, [A7]+
  2351. 00001906  2600                     move.l     D3, D0
  2352. 00001908  B6AA 0004                cmp.l      D3, [A2 + 0x4]
  2353. 0000190C  57C0                     seq        D0
  2354. 0000190E  4400                     neg.b      D0
  2355. 00001910  49C0                     lea.l      A4, D0
  2356. 00001912  1F40 0009                move.b     [A7 + 0x9], D0
  2357. 00001916  2943 003E                move.l     [A4 + 0x3E], D3
  2358. 0000191A  2605                     move.l     D3, D5
  2359. 0000191C  C6AA 0008                and.l      D3, [A2 + 0x8]
  2360. 00001920  302A 000C                move.w     D0, [A2 + 0xC]
  2361. 00001924  48C0                     ext.l      D0
  2362. 00001926  2C05                     move.l     D6, D5
  2363. 00001928  E0AE                     lsr        D6, D0
  2364. 0000192A  B66A 0010                cmp.w      D3, [A2 + 0x10]
  2365. 0000192E  6CC4                     bge        -0x3A /* 000018F4 */
  2366. 00001930  BC6A 000E                cmp.w      D6, [A2 + 0xE]
  2367. 00001934  6CBE                     bge        -0x40 /* 000018F4 */
  2368. 00001936  2F6C 0036 002A           move.l     [A7 + 0x2A], [A4 + 0x36]
  2369. 0000193C  2F6C 003A 002E           move.l     [A7 + 0x2E], [A4 + 0x3A]
  2370. 00001942  2C4C                     movea.l    A6, A4
  2371. 00001944  4DEE 003E                lea.l      A6, [A6 + 0x3E]
  2372. 00001948  486F 002A                pea.l      [A7 + 0x2A]
  2373. 0000194C  302E 0006                move.w     D0, [A6 + 0x6]
  2374. 00001950  C1C3                     muls.w     D0, D3
  2375. 00001952  3F00                     move.w     -[A7], D0
  2376. 00001954  302E 0004                move.w     D0, [A6 + 0x4]
  2377. 00001958  C1C6                     muls.w     D0, D6
  2378. 0000195A  3F00                     move.w     -[A7], D0
  2379. 0000195C  A8A8                     syscall    OffsetRect
  2380. label0000195E:
  2381. 0000195E  2F0B                     move.l     -[A7], A3
  2382. 00001960  486F 002E                pea.l      [A7 + 0x2E]
  2383. 00001964  486F 0032                pea.l      [A7 + 0x32]
  2384. 00001968  4EBA EA14                jsr        [PC - 0x15EC /* 0000037E */]
  2385. 0000196C  48C4                     ext.l      D4
  2386. 0000196E  5284                     addq.l     D4, 1
  2387. 00001970  B86A 0012                cmp.w      D4, [A2 + 0x12]
  2388. 00001974  4FEF 000C                lea.l      A7, [A7 + 0xC]
  2389. 00001978  6D00 FF7A                blt        -0x84 /* 000018F4 */
  2390. 0000197C  6000 044E                bra        +0x450 /* 00001DCC */
  2391. 00001980  4A6A 000E                tst.w      [A2 + 0xE]
  2392. 00001984  6600 00DE                bne        +0xE0 /* 00001A64 */
  2393. 00001988  4A2D 20A8                tst.b      [A5 + 0x20A8]
  2394. 0000198C  6700 00A6                beq        +0xA8 /* 00001A34 */
  2395. 00001990  486B 0036                pea.l      [A3 + 0x36]
  2396. 00001994  4EAD B3F8                jsr        [A5 - 0x4C08]
  2397. 00001998  2608                     move.l     D3, A0
  2398. 0000199A  206B 0032                movea.l    A0, [A3 + 0x32]
  2399. 0000199E  2C10                     move.l     D6, [A0]
  2400. 000019A0  2046                     movea.l    A0, D6
  2401. 000019A2  4AA8 0008                tst.l      [A0 + 0x8]
  2402. 000019A6  584F                     addq.w     A7, 4
  2403. 000019A8  6724                     beq        +0x26 /* 000019CE */
  2404. 000019AA  2F6A 0004 0020           move.l     [A7 + 0x20], [A2 + 0x4]
  2405. 000019B0  2F6A 0008 0024           move.l     [A7 + 0x24], [A2 + 0x8]
  2406. 000019B6  486F 0020                pea.l      [A7 + 0x20]
  2407. 000019BA  4EBA EA60                jsr        [PC - 0x15A0 /* 0000041C */]
  2408. 000019BE  2046                     movea.l    A0, D6
  2409. 000019C0  2068 0008                movea.l    A0, [A0 + 0x8]
  2410. 000019C4  2050                     movea.l    A0, [A0]
  2411. 000019C6  2C68 0016                movea.l    A6, [A0 + 0x16]
  2412. 000019CA  584F                     addq.w     A7, 4
  2413. 000019CC  6010                     bra        +0x12 /* 000019DE */
  2414. label000019CE:
  2415. 000019CE  2F6A 0004 0020           move.l     [A7 + 0x20], [A2 + 0x4]
  2416. 000019D4  2F6A 0008 0024           move.l     [A7 + 0x24], [A2 + 0x8]
  2417. 000019DA  2C6B 002A                movea.l    A6, [A3 + 0x2A]
  2418. label000019DE:
  2419. 000019DE  2043                     movea.l    A0, D3
  2420. 000019E0  A069                     syscall    HGetState
  2421. 000019E2  49C0                     lea.l      A4, D0
  2422. 000019E4  1800                     move.b     D4, D0
  2423. 000019E6  204E                     movea.l    A0, A6
  2424. 000019E8  A069                     syscall    HGetState
  2425. 000019EA  49C0                     lea.l      A4, D0
  2426. 000019EC  1A00                     move.b     D5, D0
  2427. 000019EE  2043                     movea.l    A0, D3
  2428. 000019F0  A029                     syscall    HLock
  2429. 000019F2  204E                     movea.l    A0, A6
  2430. 000019F4  A029                     syscall    HLock
  2431. 000019F6  554F                     subq.w     A7, 2
  2432. 000019F8  2043                     movea.l    A0, D3
  2433. 000019FA  2F10                     move.l     -[A7], [A0]
  2434. 000019FC  2F16                     move.l     -[A7], [A6]
  2435. 000019FE  486A 0004                pea.l      [A2 + 0x4]
  2436. 00001A02  486F 002E                pea.l      [A7 + 0x2E]
  2437. 00001A06  3F2A 000C                move.w     -[A7], [A2 + 0xC]
  2438. 00001A0A  42A7                     clr.l      -[A7]
  2439. 00001A0C  1F2D 20A9                move.b     -[A7], [A5 + 0x20A9]
  2440. 00001A10  4EAD 9E6E                jsr        [A5 - 0x6192]
  2441. 00001A14  301F                     move.w     D0, [A7]+
  2442. 00001A16  4A40                     tst.w      D0
  2443. 00001A18  57C0                     seq        D0
  2444. 00001A1A  4400                     neg.b      D0
  2445. 00001A1C  49C0                     lea.l      A4, D0
  2446. 00001A1E  2046                     movea.l    A0, D6
  2447. 00001A20  1140 0010                move.b     [A0 + 0x10], D0
  2448. 00001A24  204E                     movea.l    A0, A6
  2449. 00001A26  1005                     move.b     D0, D5
  2450. 00001A28  A06A                     syscall    HSetState
  2451. 00001A2A  2043                     movea.l    A0, D3
  2452. 00001A2C  1004                     move.b     D0, D4
  2453. 00001A2E  A06A                     syscall    HSetState
  2454. 00001A30  6000 039A                bra        +0x39C /* 00001DCC */
  2455. label00001A34:
  2456. 00001A34  554F                     subq.w     A7, 2
  2457. 00001A36  486B 004C                pea.l      [A3 + 0x4C]
  2458. 00001A3A  486B 001C                pea.l      [A3 + 0x1C]
  2459. 00001A3E  486A 0004                pea.l      [A2 + 0x4]
  2460. 00001A42  486A 0004                pea.l      [A2 + 0x4]
  2461. 00001A46  3F2A 000C                move.w     -[A7], [A2 + 0xC]
  2462. 00001A4A  42A7                     clr.l      -[A7]
  2463. 00001A4C  4227                     clr.b      -[A7]
  2464. 00001A4E  4EAD 9E6E                jsr        [A5 - 0x6192]
  2465. 00001A52  301F                     move.w     D0, [A7]+
  2466. 00001A54  4A40                     tst.w      D0
  2467. 00001A56  57C0                     seq        D0
  2468. 00001A58  4400                     neg.b      D0
  2469. 00001A5A  49C0                     lea.l      A4, D0
  2470. 00001A5C  1940 0010                move.b     [A4 + 0x10], D0
  2471. 00001A60  6000 036A                bra        +0x36C /* 00001DCC */
  2472. label00001A64:
  2473. 00001A64  4A2D 20A8                tst.b      [A5 + 0x20A8]
  2474. 00001A68  671A                     beq        +0x1C /* 00001A84 */
  2475. 00001A6A  306F 003A                movea.w    A0, [A7 + 0x3A]
  2476. 00001A6E  2008                     move.l     D0, A0
  2477. 00001A70  EB88                     lsl        D0, 5
  2478. 00001A72  2074 0822                movea.l    A0, [A4 + D0 + 0x22]
  2479. 00001A76  2010                     move.l     D0, [A0]
  2480. 00001A78  A055                     syscall    StripAddress
  2481. 00001A7A  2F00                     move.l     -[A7], D0
  2482. 00001A7C  4EAD 9E74                jsr        [A5 - 0x618C]
  2483. 00001A80  6000 034A                bra        +0x34C /* 00001DCC */
  2484. label00001A84:
  2485. 00001A84  306F 003A                movea.w    A0, [A7 + 0x3A]
  2486. 00001A88  2008                     move.l     D0, A0
  2487. 00001A8A  EB88                     lsl        D0, 5
  2488. 00001A8C  2074 0822                movea.l    A0, [A4 + D0 + 0x22]
  2489. 00001A90  2F10                     move.l     -[A7], [A0]
  2490. 00001A92  4EAD 9E74                jsr        [A5 - 0x618C]
  2491. 00001A96  6000 0334                bra        +0x336 /* 00001DCC */
  2492. 00001A9A  486F 001C                pea.l      [A7 + 0x1C]
  2493. 00001A9E  A874                     syscall    GetPort
  2494. 00001AA0  2F2A 0016                move.l     -[A7], [A2 + 0x16]
  2495. 00001AA4  A873                     syscall    SetPort
  2496. 00001AA6  206A 001A                movea.l    A0, [A2 + 0x1A]
  2497. 00001AAA  2050                     movea.l    A0, [A0]
  2498. 00001AAC  3610                     move.w     D3, [A0]
  2499. 00001AAE  48C3                     ext.l      D3
  2500. 00001AB0  5383                     subq.l     D3, 1
  2501. 00001AB2  B66A 001E                cmp.w      D3, [A2 + 0x1E]
  2502. 00001AB6  6F04                     ble        +0x6 /* 00001ABC */
  2503. 00001AB8  362A 001E                move.w     D3, [A2 + 0x1E]
  2504. label00001ABC:
  2505. 00001ABC  206A 0016                movea.l    A0, [A2 + 0x16]
  2506. 00001AC0  4868 0010                pea.l      [A0 + 0x10]
  2507. 00001AC4  3043                     movea.w    A0, D3
  2508. 00001AC6  2008                     move.l     D0, A0
  2509. 00001AC8  E788                     lsl        D0, 3
  2510. 00001ACA  206A 001A                movea.l    A0, [A2 + 0x1A]
  2511. 00001ACE  2050                     movea.l    A0, [A0]
  2512. 00001AD0  D1C0                     add.l      A0, D0
  2513. 00001AD2  4868 0002                pea.l      [A0 + 0x2]
  2514. 00001AD6  A8A5                     syscall    FillRect
  2515. 00001AD8  2F2F 001C                move.l     -[A7], [A7 + 0x1C]
  2516. 00001ADC  A873                     syscall    SetPort
  2517. 00001ADE  2F6A 000A 002A           move.l     [A7 + 0x2A], [A2 + 0xA]
  2518. 00001AE4  2F6A 000E 002E           move.l     [A7 + 0x2E], [A2 + 0xE]
  2519. 00001AEA  4A2D 20A8                tst.b      [A5 + 0x20A8]
  2520. 00001AEE  6752                     beq        +0x54 /* 00001B42 */
  2521. 00001AF0  486B 0036                pea.l      [A3 + 0x36]
  2522. 00001AF4  4EAD B3F8                jsr        [A5 - 0x4C08]
  2523. 00001AF8  2C48                     movea.l    A6, A0
  2524. 00001AFA  206B 002A                movea.l    A0, [A3 + 0x2A]
  2525. 00001AFE  A069                     syscall    HGetState
  2526. 00001B00  49C0                     lea.l      A4, D0
  2527. 00001B02  1A00                     move.b     D5, D0
  2528. 00001B04  204E                     movea.l    A0, A6
  2529. 00001B06  A069                     syscall    HGetState
  2530. 00001B08  49C0                     lea.l      A4, D0
  2531. 00001B0A  1800                     move.b     D4, D0
  2532. 00001B0C  204E                     movea.l    A0, A6
  2533. 00001B0E  A029                     syscall    HLock
  2534. 00001B10  206B 002A                movea.l    A0, [A3 + 0x2A]
  2535. 00001B14  A029                     syscall    HLock
  2536. 00001B16  2F16                     move.l     -[A7], [A6]
  2537. 00001B18  486A 0004                pea.l      [A2 + 0x4]
  2538. 00001B1C  206B 002A                movea.l    A0, [A3 + 0x2A]
  2539. 00001B20  2F10                     move.l     -[A7], [A0]
  2540. 00001B22  486F 003A                pea.l      [A7 + 0x3A]
  2541. 00001B26  486F 003E                pea.l      [A7 + 0x3E]
  2542. 00001B2A  486F 0042                pea.l      [A7 + 0x42]
  2543. 00001B2E  A817                     syscall    CopyMask
  2544. 00001B30  206B 002A                movea.l    A0, [A3 + 0x2A]
  2545. 00001B34  1005                     move.b     D0, D5
  2546. 00001B36  A06A                     syscall    HSetState
  2547. 00001B38  204E                     movea.l    A0, A6
  2548. 00001B3A  1004                     move.b     D0, D4
  2549. 00001B3C  A06A                     syscall    HSetState
  2550. 00001B3E  584F                     addq.w     A7, 4
  2551. 00001B40  601A                     bra        +0x1C /* 00001B5C */
  2552. label00001B42:
  2553. 00001B42  486B 004C                pea.l      [A3 + 0x4C]
  2554. 00001B46  486A 0004                pea.l      [A2 + 0x4]
  2555. 00001B4A  486B 001C                pea.l      [A3 + 0x1C]
  2556. 00001B4E  486F 0036                pea.l      [A7 + 0x36]
  2557. 00001B52  486F 003A                pea.l      [A7 + 0x3A]
  2558. 00001B56  486F 003E                pea.l      [A7 + 0x3E]
  2559. 00001B5A  A817                     syscall    CopyMask
  2560. label00001B5C:
  2561. 00001B5C  302F 0006                move.w     D0, [A7 + 0x6]
  2562. 00001B60  48C0                     ext.l      D0
  2563. 00001B62  322A 001E                move.w     D1, [A2 + 0x1E]
  2564. 00001B66  48C1                     ext.l      D1
  2565. 00001B68  D280                     add.l      D1, D0
  2566. 00001B6A  3541 001E                move.w     [A2 + 0x1E], D1
  2567. 00001B6E  6000 025C                bra        +0x25E /* 00001DCC */
  2568. 00001B72  3F3C 0001                move.w     -[A7], 0x1
  2569. 00001B76  3F2A 0004                move.w     -[A7], [A2 + 0x4]
  2570. 00001B7A  4EBA E7D6                jsr        [PC - 0x182A /* 00000352 */]
  2571. 00001B7E  3A00                     move.w     D5, D0
  2572. 00001B80  3F3C 0001                move.w     -[A7], 0x1
  2573. 00001B84  3F2A 0006                move.w     -[A7], [A2 + 0x6]
  2574. 00001B88  4EBA E7C8                jsr        [PC - 0x1838 /* 00000352 */]
  2575. 00001B8C  3E00                     move.w     D7, D0
  2576. 00001B8E  4AAA 0008                tst.l      [A2 + 0x8]
  2577. 00001B92  56C0                     sne        D0
  2578. 00001B94  4400                     neg.b      D0
  2579. 00001B96  49C0                     lea.l      A4, D0
  2580. 00001B98  5280                     addq.l     D0, 1
  2581. 00001B9A  3F40 0030                move.w     [A7 + 0x30], D0
  2582. 00001B9E  302F 0042                move.w     D0, [A7 + 0x42]
  2583. 00001BA2  48C0                     ext.l      D0
  2584. 00001BA4  5280                     addq.l     D0, 1
  2585. 00001BA6  EB88                     lsl        D0, 5
  2586. 00001BA8  204C                     movea.l    A0, A4
  2587. 00001BAA  D1C0                     add.l      A0, D0
  2588. 00001BAC  2F68 0016 003A           move.l     [A7 + 0x3A], [A0 + 0x16]
  2589. 00001BB2  2F68 001A 003E           move.l     [A7 + 0x3E], [A0 + 0x1A]
  2590. 00001BB8  7801                     moveq.l    D4, 0x01
  2591. 00001BBA  504F                     addq.w     A7, 8
  2592. 00001BBC  6000 0080                bra        +0x82 /* 00001C3E */
  2593. label00001BC0:
  2594. 00001BC0  2F6F 0032 003C           move.l     [A7 + 0x3C], [A7 + 0x32]
  2595. 00001BC6  2F6F 0036 0040           move.l     [A7 + 0x40], [A7 + 0x36]
  2596. 00001BCC  7C01                     moveq.l    D6, 0x01
  2597. 00001BCE  605A                     bra        +0x5C /* 00001C2A */
  2598. label00001BD0:
  2599. 00001BD0  2F6F 003C 0044           move.l     [A7 + 0x44], [A7 + 0x3C]
  2600. 00001BD6  2F6F 0040 0048           move.l     [A7 + 0x48], [A7 + 0x40]
  2601. 00001BDC  7601                     moveq.l    D3, 0x01
  2602. 00001BDE  6022                     bra        +0x24 /* 00001C02 */
  2603. label00001BE0:
  2604. 00001BE0  2F0B                     move.l     -[A7], A3
  2605. 00001BE2  486F 0048                pea.l      [A7 + 0x48]
  2606. 00001BE6  486F 004C                pea.l      [A7 + 0x4C]
  2607. 00001BEA  4EBA E792                jsr        [PC - 0x186E /* 0000037E */]
  2608. 00001BEE  486F 0050                pea.l      [A7 + 0x50]
  2609. 00001BF2  3F2A 000E                move.w     -[A7], [A2 + 0xE]
  2610. 00001BF6  3F2A 000C                move.w     -[A7], [A2 + 0xC]
  2611. 00001BFA  A8A8                     syscall    OffsetRect
  2612. 00001BFC  5243                     addq.w     D3, 1
  2613. 00001BFE  4FEF 000C                lea.l      A7, [A7 + 0xC]
  2614. label00001C02:
  2615. 00001C02  0C44 0001                cmpi.w     D4, 0x1
  2616. 00001C06  56C0                     sne        D0
  2617. 00001C08  4400                     neg.b      D0
  2618. 00001C0A  49C0                     lea.l      A4, D0
  2619. 00001C0C  3205                     move.w     D1, D5
  2620. 00001C0E  48C1                     ext.l      D1
  2621. 00001C10  D280                     add.l      D1, D0
  2622. 00001C12  3003                     move.w     D0, D3
  2623. 00001C14  48C0                     ext.l      D0
  2624. 00001C16  B081                     cmp.l      D0, D1
  2625. 00001C18  6FC6                     ble        -0x38 /* 00001BE0 */
  2626. 00001C1A  486F 003C                pea.l      [A7 + 0x3C]
  2627. 00001C1E  3F2A 0012                move.w     -[A7], [A2 + 0x12]
  2628. 00001C22  3F2A 0010                move.w     -[A7], [A2 + 0x10]
  2629. 00001C26  A8A8                     syscall    OffsetRect
  2630. 00001C28  5246                     addq.w     D6, 1
  2631. label00001C2A:
  2632. 00001C2A  BC47                     cmp.w      D6, D7
  2633. 00001C2C  6FA2                     ble        -0x5C /* 00001BD0 */
  2634. 00001C2E  486F 0032                pea.l      [A7 + 0x32]
  2635. 00001C32  3F2A 000A                move.w     -[A7], [A2 + 0xA]
  2636. 00001C36  3F2A 0008                move.w     -[A7], [A2 + 0x8]
  2637. 00001C3A  A8A8                     syscall    OffsetRect
  2638. 00001C3C  5244                     addq.w     D4, 1
  2639. label00001C3E:
  2640. 00001C3E  B86F 0028                cmp.w      D4, [A7 + 0x28]
  2641. 00001C42  6F00 FF7C                ble        -0x82 /* 00001BC0 */
  2642. 00001C46  6000 0184                bra        +0x186 /* 00001DCC */
  2643. 00001C4A  7001                     moveq.l    D0, 0x01
  2644. 00001C4C  B0AC 0004                cmp.l      D0, [A4 + 0x4]
  2645. 00001C50  6668                     bne        +0x6A /* 00001CBA */
  2646. 00001C52  7007                     moveq.l    D0, 0x07
  2647. 00001C54  B092                     cmp.l      D0, [A2]
  2648. 00001C56  6662                     bne        +0x64 /* 00001CBA */
  2649. 00001C58  2C4A                     movea.l    A6, A2
  2650. 00001C5A  588E                     addq.l     A6, 4
  2651. 00001C5C  302A 000E                move.w     D0, [A2 + 0xE]
  2652. 00001C60  48C0                     ext.l      D0
  2653. 00001C62  322E 0002                move.w     D1, [A6 + 0x2]
  2654. 00001C66  48C1                     ext.l      D1
  2655. 00001C68  D280                     add.l      D1, D0
  2656. 00001C6A  3D41 0002                move.w     [A6 + 0x2], D1
  2657. 00001C6E  302A 0012                move.w     D0, [A2 + 0x12]
  2658. 00001C72  48C0                     ext.l      D0
  2659. 00001C74  322E 0006                move.w     D1, [A6 + 0x6]
  2660. 00001C78  48C1                     ext.l      D1
  2661. 00001C7A  D280                     add.l      D1, D0
  2662. 00001C7C  3D41 0006                move.w     [A6 + 0x6], D1
  2663. 00001C80  302A 000C                move.w     D0, [A2 + 0xC]
  2664. 00001C84  48C0                     ext.l      D0
  2665. 00001C86  3216                     move.w     D1, [A6]
  2666. 00001C88  48C1                     ext.l      D1
  2667. 00001C8A  D280                     add.l      D1, D0
  2668. 00001C8C  3C81                     move.w     [A6], D1
  2669. 00001C8E  302A 0010                move.w     D0, [A2 + 0x10]
  2670. 00001C92  48C0                     ext.l      D0
  2671. 00001C94  322E 0004                move.w     D1, [A6 + 0x4]
  2672. 00001C98  48C1                     ext.l      D1
  2673. 00001C9A  D280                     add.l      D1, D0
  2674. 00001C9C  3D41 0004                move.w     [A6 + 0x4], D1
  2675. 00001CA0  302F 003A                move.w     D0, [A7 + 0x3A]
  2676. 00001CA4  48C0                     ext.l      D0
  2677. 00001CA6  5280                     addq.l     D0, 1
  2678. 00001CA8  EB88                     lsl        D0, 5
  2679. 00001CAA  204C                     movea.l    A0, A4
  2680. 00001CAC  D1C0                     add.l      A0, D0
  2681. 00001CAE  2568 001E 000C           move.l     [A2 + 0xC], [A0 + 0x1E]
  2682. 00001CB4  2568 0022 0010           move.l     [A2 + 0x10], [A0 + 0x22]
  2683. label00001CBA:
  2684. 00001CBA  302C 000C                move.w     D0, [A4 + 0xC]
  2685. 00001CBE  48C0                     ext.l      D0
  2686. 00001CC0  90AC 0004                sub.l      D0, [A4 + 0x4]
  2687. 00001CC4  3F40 0004                move.w     [A7 + 0x4], D0
  2688. 00001CC8  3E00                     move.w     D7, D0
  2689. 00001CCA  2F6A 0004 0044           move.l     [A7 + 0x44], [A2 + 0x4]
  2690. 00001CD0  2F6A 0008 0048           move.l     [A7 + 0x48], [A2 + 0x8]
  2691. 00001CD6  3800                     move.w     D4, D0
  2692. 00001CD8  7C00                     moveq.l    D6, 0x00
  2693. 00001CDA  7A00                     moveq.l    D5, 0x00
  2694. 00001CDC  7601                     moveq.l    D3, 0x01
  2695. 00001CDE  6000 00AC                bra        +0xAE /* 00001D8C */
  2696. label00001CE2:
  2697. 00001CE2  7003                     moveq.l    D0, 0x03
  2698. 00001CE4  B0AC 0004                cmp.l      D0, [A4 + 0x4]
  2699. 00001CE8  6D0A                     blt        +0xC /* 00001CF4 */
  2700. 00001CEA  3003                     move.w     D0, D3
  2701. 00001CEC  48C0                     ext.l      D0
  2702. 00001CEE  B0AC 0004                cmp.l      D0, [A4 + 0x4]
  2703. 00001CF2  6714                     beq        +0x16 /* 00001D08 */
  2704. label00001CF4:
  2705. 00001CF4  0C43 0004                cmpi.w     D3, 0x4
  2706. 00001CF8  661C                     bne        +0x1E /* 00001D16 */
  2707. 00001CFA  7003                     moveq.l    D0, 0x03
  2708. 00001CFC  B0AC 0004                cmp.l      D0, [A4 + 0x4]
  2709. 00001D00  6C14                     bge        +0x16 /* 00001D16 */
  2710. 00001D02  0C44 0003                cmpi.w     D4, 0x3
  2711. 00001D06  6D0E                     blt        +0x10 /* 00001D16 */
  2712. label00001D08:
  2713. 00001D08  2F6F 0044 003C           move.l     [A7 + 0x3C], [A7 + 0x44]
  2714. 00001D0E  2F6F 0048 0040           move.l     [A7 + 0x40], [A7 + 0x48]
  2715. 00001D14  7C01                     moveq.l    D6, 0x01
  2716. label00001D16:
  2717. 00001D16  0C43 0001                cmpi.w     D3, 0x1
  2718. 00001D1A  6616                     bne        +0x18 /* 00001D32 */
  2719. 00001D1C  7004                     moveq.l    D0, 0x04
  2720. 00001D1E  B0AC 0004                cmp.l      D0, [A4 + 0x4]
  2721. 00001D22  6E0E                     bgt        +0x10 /* 00001D32 */
  2722. 00001D24  2F6F 0044 0032           move.l     [A7 + 0x32], [A7 + 0x44]
  2723. 00001D2A  2F6F 0048 0036           move.l     [A7 + 0x36], [A7 + 0x48]
  2724. 00001D30  7A01                     moveq.l    D5, 0x01
  2725. label00001D32:
  2726. 00001D32  4DEF 0044                lea.l      A6, [A7 + 0x44]
  2727. 00001D36  302F 003A                move.w     D0, [A7 + 0x3A]
  2728. 00001D3A  48C0                     ext.l      D0
  2729. 00001D3C  5280                     addq.l     D0, 1
  2730. 00001D3E  EB88                     lsl        D0, 5
  2731. 00001D40  204C                     movea.l    A0, A4
  2732. 00001D42  D1C0                     add.l      A0, D0
  2733. 00001D44  2E88                     move.l     [A7], A0
  2734. 00001D46  3028 0020                move.w     D0, [A0 + 0x20]
  2735. 00001D4A  48C0                     ext.l      D0
  2736. 00001D4C  322E 0002                move.w     D1, [A6 + 0x2]
  2737. 00001D50  48C1                     ext.l      D1
  2738. 00001D52  D280                     add.l      D1, D0
  2739. 00001D54  3D41 0002                move.w     [A6 + 0x2], D1
  2740. 00001D58  3028 0024                move.w     D0, [A0 + 0x24]
  2741. 00001D5C  48C0                     ext.l      D0
  2742. 00001D5E  322E 0006                move.w     D1, [A6 + 0x6]
  2743. 00001D62  48C1                     ext.l      D1
  2744. 00001D64  D280                     add.l      D1, D0
  2745. 00001D66  3D41 0006                move.w     [A6 + 0x6], D1
  2746. 00001D6A  3028 001E                move.w     D0, [A0 + 0x1E]
  2747. 00001D6E  48C0                     ext.l      D0
  2748. 00001D70  3216                     move.w     D1, [A6]
  2749. 00001D72  48C1                     ext.l      D1
  2750. 00001D74  D280                     add.l      D1, D0
  2751. 00001D76  3C81                     move.w     [A6], D1
  2752. 00001D78  3028 0022                move.w     D0, [A0 + 0x22]
  2753. 00001D7C  48C0                     ext.l      D0
  2754. 00001D7E  322E 0004                move.w     D1, [A6 + 0x4]
  2755. 00001D82  48C1                     ext.l      D1
  2756. 00001D84  D280                     add.l      D1, D0
  2757. 00001D86  3D41 0004                move.w     [A6 + 0x4], D1
  2758. 00001D8A  5243                     addq.w     D3, 1
  2759. label00001D8C:
  2760. 00001D8C  0C43 0004                cmpi.w     D3, 0x4
  2761. 00001D90  6F00 FF50                ble        -0xAE /* 00001CE2 */
  2762. 00001D94  486F 000A                pea.l      [A7 + 0xA]
  2763. 00001D98  A898                     syscall    GetPenState
  2764. 00001D9A  3F3C 000A                move.w     -[A7], 0xA /* '\n' */
  2765. 00001D9E  A89C                     syscall    PenMode
  2766. 00001DA0  4EAD D7B8                jsr        [A5 - 0x2848]
  2767. 00001DA4  2F08                     move.l     -[A7], A0
  2768. 00001DA6  A89D                     syscall    PenPat
  2769. 00001DA8  4A06                     tst.b      D6
  2770. 00001DAA  6706                     beq        +0x8 /* 00001DB2 */
  2771. 00001DAC  486F 003C                pea.l      [A7 + 0x3C]
  2772. 00001DB0  A8A1                     syscall    FrameRect
  2773. label00001DB2:
  2774. 00001DB2  4A05                     tst.b      D5
  2775. 00001DB4  6706                     beq        +0x8 /* 00001DBC */
  2776. 00001DB6  486F 0032                pea.l      [A7 + 0x32]
  2777. 00001DBA  A8A1                     syscall    FrameRect
  2778. label00001DBC:
  2779. 00001DBC  486F 000A                pea.l      [A7 + 0xA]
  2780. 00001DC0  A899                     syscall    SetPenState
  2781. 00001DC2  7004                     moveq.l    D0, 0x04
  2782. 00001DC4  B0AC 0004                cmp.l      D0, [A4 + 0x4]
  2783. 00001DC8  6E00 008E                bgt        +0x90 /* 00001E58 */
  2784. label00001DCC:
  2785. 00001DCC  2012                     move.l     D0, [A2]
  2786. 00001DCE  5380                     subq.l     D0, 1
  2787. 00001DD0  0C80 0000 0008           cmpi.l     D0, 0x8
  2788. 00001DD6  6200 0080                bhi        +0x82 /* 00001E58 */
  2789. 00001DDA  5940                     subq.w     D0, 4
  2790. 00001DDC  6D0A                     blt        +0xC /* 00001DE8 */
  2791. 00001DDE  5540                     subq.w     D0, 2
  2792. 00001DE0  6D76                     blt        +0x78 /* 00001E58 */
  2793. 00001DE2  6704                     beq        +0x6 /* 00001DE8 */
  2794. 00001DE4  5540                     subq.w     D0, 2
  2795. 00001DE6  6D70                     blt        +0x72 /* 00001E58 */
  2796. label00001DE8:
  2797. 00001DE8  2C4A                     movea.l    A6, A2
  2798. 00001DEA  588E                     addq.l     A6, 4
  2799. 00001DEC  302A 000E                move.w     D0, [A2 + 0xE]
  2800. 00001DF0  48C0                     ext.l      D0
  2801. 00001DF2  322E 0002                move.w     D1, [A6 + 0x2]
  2802. 00001DF6  48C1                     ext.l      D1
  2803. 00001DF8  D280                     add.l      D1, D0
  2804. 00001DFA  3D41 0002                move.w     [A6 + 0x2], D1
  2805. 00001DFE  302A 0012                move.w     D0, [A2 + 0x12]
  2806. 00001E02  48C0                     ext.l      D0
  2807. 00001E04  322E 0006                move.w     D1, [A6 + 0x6]
  2808. 00001E08  48C1                     ext.l      D1
  2809. 00001E0A  D280                     add.l      D1, D0
  2810. 00001E0C  3D41 0006                move.w     [A6 + 0x6], D1
  2811. 00001E10  302A 000C                move.w     D0, [A2 + 0xC]
  2812. 00001E14  48C0                     ext.l      D0
  2813. 00001E16  3216                     move.w     D1, [A6]
  2814. 00001E18  48C1                     ext.l      D1
  2815. 00001E1A  D280                     add.l      D1, D0
  2816. 00001E1C  3C81                     move.w     [A6], D1
  2817. 00001E1E  302A 0010                move.w     D0, [A2 + 0x10]
  2818. 00001E22  48C0                     ext.l      D0
  2819. 00001E24  322E 0004                move.w     D1, [A6 + 0x4]
  2820. 00001E28  48C1                     ext.l      D1
  2821. 00001E2A  D280                     add.l      D1, D0
  2822. 00001E2C  3D41 0004                move.w     [A6 + 0x4], D1
  2823. 00001E30  7001                     moveq.l    D0, 0x01
  2824. 00001E32  B0AC 0004                cmp.l      D0, [A4 + 0x4]
  2825. 00001E36  6620                     bne        +0x22 /* 00001E58 */
  2826. 00001E38  7002                     moveq.l    D0, 0x02
  2827. 00001E3A  B092                     cmp.l      D0, [A2]
  2828. 00001E3C  661A                     bne        +0x1C /* 00001E58 */
  2829. 00001E3E  302F 003A                move.w     D0, [A7 + 0x3A]
  2830. 00001E42  48C0                     ext.l      D0
  2831. 00001E44  5280                     addq.l     D0, 1
  2832. 00001E46  EB88                     lsl        D0, 5
  2833. 00001E48  204C                     movea.l    A0, A4
  2834. 00001E4A  D1C0                     add.l      A0, D0
  2835. 00001E4C  2568 001E 000C           move.l     [A2 + 0xC], [A0 + 0x1E]
  2836. 00001E52  2568 0022 0010           move.l     [A2 + 0x10], [A0 + 0x22]
  2837. label00001E58:
  2838. 00001E58  526F 003A                addq.w     [A7 + 0x3A], 1
  2839. label00001E5C:
  2840. 00001E5C  302F 003A                move.w     D0, [A7 + 0x3A]
  2841. 00001E60  B06C 000E                cmp.w      D0, [A4 + 0xE]
  2842. 00001E64  6F00 F984                ble        -0x67A /* 000017EA */
  2843. 00001E68  206B 0032                movea.l    A0, [A3 + 0x32]
  2844. 00001E6C  A02A                     syscall    HUnlock
  2845. label00001E6E:
  2846. 00001E6E  1F6F 0009 0078           move.b     [A7 + 0x78], [A7 + 0x9]
  2847. 00001E74  4FEF 004C                lea.l      A7, [A7 + 0x4C]
  2848. 00001E78  4CDF 5CF8                movem.l    D3,D4,D5,D6,D7,A2,A3,A4,A6, [A7]+
  2849. 00001E7C  4E74 0004                rtd        0x0004
  2850. 00001E80  48E7 1838                movem.l    -[A7], D3,D4,A2,A3,A4
  2851. 00001E84  514F                     subq.w     A7, 8
  2852. 00001E86  286F 0020                movea.l    A4, [A7 + 0x20]
  2853. 00001E8A  2F2C 002E                move.l     -[A7], [A4 + 0x2E]
  2854. 00001E8E  4EBA E356                jsr        [PC - 0x1CAA /* 000001E6 */]
  2855. 00001E92  1600                     move.b     D3, D0
  2856. 00001E94  4AAC 0032                tst.l      [A4 + 0x32]
  2857. 00001E98  584F                     addq.w     A7, 4
  2858. 00001E9A  6700 00EE                beq        +0xF0 /* 00001F8A */
  2859. 00001E9E  42A7                     clr.l      -[A7]
  2860. 00001EA0  2F2C 002E                move.l     -[A7], [A4 + 0x2E]
  2861. 00001EA4  4EBA E162                jsr        [PC - 0x1E9E /* 00000008 */]
  2862. 00001EA8  4A00                     tst.b      D0
  2863. 00001EAA  504F                     addq.w     A7, 8
  2864. 00001EAC  660C                     bne        +0xE /* 00001EBA */
  2865. 00001EAE  554F                     subq.w     A7, 2
  2866. 00001EB0  486C 000E                pea.l      [A4 + 0xE]
  2867. 00001EB4  A8AE                     syscall    EmptyRect
  2868. 00001EB6  101F                     move.b     D0, [A7]+
  2869. 00001EB8  670C                     beq        +0xE /* 00001EC6 */
  2870. label00001EBA:
  2871. 00001EBA  2EAC 000E                move.l     [A7], [A4 + 0xE]
  2872. 00001EBE  2F6C 0012 0004           move.l     [A7 + 0x4], [A4 + 0x12]
  2873. 00001EC4  600A                     bra        +0xC /* 00001ED0 */
  2874. label00001EC6:
  2875. 00001EC6  2EAC 0002                move.l     [A7], [A4 + 0x2]
  2876. 00001ECA  2F6C 0006 0004           move.l     [A7 + 0x4], [A4 + 0x6]
  2877. label00001ED0:
  2878. 00001ED0  206C 0032                movea.l    A0, [A4 + 0x32]
  2879. 00001ED4  A029                     syscall    HLock
  2880. 00001ED6  206C 0032                movea.l    A0, [A4 + 0x32]
  2881. 00001EDA  2650                     movea.l    A3, [A0]
  2882. 00001EDC  302B 000C                move.w     D0, [A3 + 0xC]
  2883. 00001EE0  48C0                     ext.l      D0
  2884. 00001EE2  B0AB 0004                cmp.l      D0, [A3 + 0x4]
  2885. 00001EE6  6E16                     bgt        +0x18 /* 00001EFE */
  2886. 00001EE8  4A2B 0010                tst.b      [A3 + 0x10]
  2887. 00001EEC  6610                     bne        +0x12 /* 00001EFE */
  2888. 00001EEE  0C03 002F                cmpi.b     D3, 0x2F /* '/' */
  2889. 00001EF2  670A                     beq        +0xC /* 00001EFE */
  2890. 00001EF4  0C03 0030                cmpi.b     D3, 0x30 /* '0' */
  2891. 00001EF8  6704                     beq        +0x6 /* 00001EFE */
  2892. 00001EFA  7000                     moveq.l    D0, 0x00
  2893. 00001EFC  6002                     bra        +0x4 /* 00001F00 */
  2894. label00001EFE:
  2895. 00001EFE  7001                     moveq.l    D0, 0x01
  2896. label00001F00:
  2897. 00001F00  1800                     move.b     D4, D0
  2898. 00001F02  4A04                     tst.b      D4
  2899. 00001F04  6712                     beq        +0x14 /* 00001F18 */
  2900. 00001F06  2F0C                     move.l     -[A7], A4
  2901. 00001F08  486F 0004                pea.l      [A7 + 0x4]
  2902. 00001F0C  486F 0008                pea.l      [A7 + 0x8]
  2903. 00001F10  4EBA E46C                jsr        [PC - 0x1B94 /* 0000037E */]
  2904. 00001F14  4FEF 000C                lea.l      A7, [A7 + 0xC]
  2905. label00001F18:
  2906. 00001F18  7600                     moveq.l    D3, 0x00
  2907. 00001F1A  6050                     bra        +0x52 /* 00001F6C */
  2908. label00001F1C:
  2909. 00001F1C  3443                     movea.w    A2, D3
  2910. 00001F1E  200A                     move.l     D0, A2
  2911. 00001F20  EB88                     lsl        D0, 5
  2912. 00001F22  244B                     movea.l    A2, A3
  2913. 00001F24  D5C0                     add.l      A2, D0
  2914. 00001F26  45EA 0012                lea.l      A2, [A2 + 0x12]
  2915. 00001F2A  7006                     moveq.l    D0, 0x06
  2916. 00001F2C  B092                     cmp.l      D0, [A2]
  2917. 00001F2E  6622                     bne        +0x24 /* 00001F52 */
  2918. 00001F30  2F2A 0016                move.l     -[A7], [A2 + 0x16]
  2919. 00001F34  A87D                     syscall    ClosePort
  2920. 00001F36  2F2A 0016                move.l     -[A7], [A2 + 0x16]
  2921. 00001F3A  4EAD C2D0                jsr        [A5 - 0x3D30]
  2922. 00001F3E  4AAA 0012                tst.l      [A2 + 0x12]
  2923. 00001F42  584F                     addq.w     A7, 4
  2924. 00001F44  6724                     beq        +0x26 /* 00001F6A */
  2925. 00001F46  2F2A 0012                move.l     -[A7], [A2 + 0x12]
  2926. 00001F4A  4EAD C260                jsr        [A5 - 0x3DA0]
  2927. 00001F4E  584F                     addq.w     A7, 4
  2928. 00001F50  6018                     bra        +0x1A /* 00001F6A */
  2929. label00001F52:
  2930. 00001F52  700A                     moveq.l    D0, 0x0A
  2931. 00001F54  B092                     cmp.l      D0, [A2]
  2932. 00001F56  6612                     bne        +0x14 /* 00001F6A */
  2933. 00001F58  4A6A 000E                tst.w      [A2 + 0xE]
  2934. 00001F5C  6C0C                     bge        +0xE /* 00001F6A */
  2935. 00001F5E  2F2A 0010                move.l     -[A7], [A2 + 0x10]
  2936. 00001F62  4EAD C260                jsr        [A5 - 0x3DA0]
  2937. 00001F66  A853                     syscall    ShowCursor
  2938. 00001F68  584F                     addq.w     A7, 4
  2939. label00001F6A:
  2940. 00001F6A  5243                     addq.w     D3, 1
  2941. label00001F6C:
  2942. 00001F6C  B66B 000E                cmp.w      D3, [A3 + 0xE]
  2943. 00001F70  6FAA                     ble        -0x54 /* 00001F1C */
  2944. 00001F72  206C 0032                movea.l    A0, [A4 + 0x32]
  2945. 00001F76  2050                     movea.l    A0, [A0]
  2946. 00001F78  2F10                     move.l     -[A7], [A0]
  2947. 00001F7A  A8D9                     syscall    DisposRgn/DisposeRgn
  2948. 00001F7C  2F2C 0032                move.l     -[A7], [A4 + 0x32]
  2949. 00001F80  4EAD C260                jsr        [A5 - 0x3DA0]
  2950. 00001F84  42AC 0032                clr.l      [A4 + 0x32]
  2951. 00001F88  584F                     addq.w     A7, 4
  2952. label00001F8A:
  2953. 00001F8A  504F                     addq.w     A7, 8
  2954. 00001F8C  4CDF 1C18                movem.l    D3,D4,A2,A3,A4, [A7]+
  2955. 00001F90  4E74 0004                rtd        0x0004
  2956. fn00001F94:
  2957. 00001F94  2F03                     move.l     -[A7], D3
  2958. 00001F96  262F 000C                move.l     D3, [A7 + 0xC]
  2959. 00001F9A  7001                     moveq.l    D0, 0x01
  2960. 00001F9C  C083                     and.l      D0, D3
  2961. 00001F9E  4A80                     tst.l      D0
  2962. 00001FA0  6606                     bne        +0x8 /* 00001FA8 */
  2963. 00001FA2  2003                     move.l     D0, D3
  2964. 00001FA4  E288                     lsr        D0, 1
  2965. 00001FA6  600A                     bra        +0xC /* 00001FB2 */
  2966. label00001FA8:
  2967. 00001FA8  2003                     move.l     D0, D3
  2968. 00001FAA  E288                     lsr        D0, 1
  2969. 00001FAC  222F 0008                move.l     D1, [A7 + 0x8]
  2970. 00001FB0  B380                     xor.l      D0, D1
  2971. label00001FB2:
  2972. 00001FB2  2F40 0010                move.l     [A7 + 0x10], D0
  2973. 00001FB6  261F                     move.l     D3, [A7]+
  2974. 00001FB8  4E74 0008                rtd        0x0008
  2975. fn00001FBC:
  2976. 00001FBC  302F 0004                move.w     D0, [A7 + 0x4]
  2977. 00001FC0  7200                     moveq.l    D1, 0x00
  2978. 00001FC2  6004                     bra        +0x6 /* 00001FC8 */
  2979. label00001FC4:
  2980. 00001FC4  E240                     asr        D0.w, 1
  2981. 00001FC6  5241                     addq.w     D1, 1
  2982. label00001FC8:
  2983. 00001FC8  4A40                     tst.w      D0
  2984. 00001FCA  66F8                     bne        -0x6 /* 00001FC4 */
  2985. 00001FCC  3001                     move.w     D0, D1
  2986. 00001FCE  4E75                     rts
  2987. fn00001FD0:
  2988. 00001FD0  48E7 1800                movem.l    -[A7], D3,D4
  2989. 00001FD4  3F2F 000C                move.w     -[A7], [A7 + 0xC]
  2990. 00001FD8  4EBA FFE2                jsr        [PC - 0x1E /* 00001FBC */]
  2991. 00001FDC  3600                     move.w     D3, D0
  2992. 00001FDE  3F2F 0010                move.w     -[A7], [A7 + 0x10]
  2993. 00001FE2  4EBA FFD8                jsr        [PC - 0x28 /* 00001FBC */]
  2994. 00001FE6  3800                     move.w     D4, D0
  2995. 00001FE8  4A43                     tst.w      D3
  2996. 00001FEA  584F                     addq.w     A7, 4
  2997. 00001FEC  6F04                     ble        +0x6 /* 00001FF2 */
  2998. 00001FEE  4A44                     tst.w      D4
  2999. 00001FF0  6E08                     bgt        +0xA /* 00001FFA */
  3000. label00001FF2:
  3001. 00001FF2  7000                     moveq.l    D0, 0x00
  3002. 00001FF4  4CDF 0018                movem.l    D3,D4, [A7]+
  3003. 00001FF8  4E75                     rts
  3004. label00001FFA:
  3005. 00001FFA  3004                     move.w     D0, D4
  3006. 00001FFC  48C0                     ext.l      D0
  3007. 00001FFE  3203                     move.w     D1, D3
  3008. 00002000  48C1                     ext.l      D1
  3009. 00002002  D280                     add.l      D1, D0
  3010. 00002004  41ED 93DE                lea.l      A0, [A5 - 0x6C22]
  3011. 00002008  226F 0010                movea.l    A1, [A7 + 0x10]
  3012. 0000200C  22B0 1C00                move.l     [A1], [A0 + D1 * 4]
  3013. 00002010  3003                     move.w     D0, D3
  3014. 00002012  48C0                     ext.l      D0
  3015. 00002014  7201                     moveq.l    D1, 0x01
  3016. 00002016  E1A9                     lsl        D1, D0
  3017. 00002018  5381                     subq.l     D1, 1
  3018. 0000201A  206F 0014                movea.l    A0, [A7 + 0x14]
  3019. 0000201E  2081                     move.l     [A0], D1
  3020. 00002020  206F 0018                movea.l    A0, [A7 + 0x18]
  3021. 00002024  3083                     move.w     [A0], D3
  3022. 00002026  3004                     move.w     D0, D4
  3023. 00002028  48C0                     ext.l      D0
  3024. 0000202A  3203                     move.w     D1, D3
  3025. 0000202C  48C1                     ext.l      D1
  3026. 0000202E  D280                     add.l      D1, D0
  3027. 00002030  3001                     move.w     D0, D1
  3028. 00002032  4CDF 0018                movem.l    D3,D4, [A7]+
  3029. 00002036  4E75                     rts
  3030. 00002038  0000 0000                ori.b      D0, 0x0
  3031. 0000203C  0000 0000                ori.b      D0, 0x0
  3032. 00002040  0000 0000                ori.b      D0, 0x0
  3033.